Documentation

Horde_Pear_Rest_Dependencies
in package

A parser for a dependency list from a PEAR server.

Tags
author

Gunnar Wrobel wrobel@pardus.de

category

Horde

copyright

2011-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$_deps  : array<string|int, mixed>
The dependency list.
__construct()  : mixed
Constructor.
getDependencies()  : string
Return the package name.
_convert()  : null
Convert the PEAR server response into an array that we would get when accessing the dependencies of a local package.xml via PEAR.

Properties

$_deps

The dependency list.

private array<string|int, mixed> $_deps

Methods

__construct()

Constructor.

public __construct(resource|string $txt) : mixed
Parameters
$txt : resource|string

The text document received from the server.

Return values
mixed

getDependencies()

Return the package name.

public getDependencies() : string
Return values
string

The package name.

_convert()

Convert the PEAR server response into an array that we would get when accessing the dependencies of a local package.xml via PEAR.

private _convert(string $type, array<string|int, mixed> $input, string $optional, array<string|int, mixed> &$result) : null
Parameters
$type : string

The dependency type.

$input : array<string|int, mixed>

The input array.

$optional : string

Indicates if it is an optional dependency.

$result : array<string|int, mixed>

The result array.

Return values
null

Search results