\Horde_Pear_Rest_Dependencies

A parser for a dependency list from a PEAR server.

Summary

Methods
Properties
Constants
__construct()
getDependencies()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_convert()
$_deps
N/A

Properties

$_deps

$_deps : array

The dependency list.

Type

array

Methods

__construct()

__construct(resource|string  $txt) 

Constructor.

Parameters

resource|string $txt

The text document received from the server.

getDependencies()

getDependencies() : string

Return the package name.

Returns

string —

The package name.

_convert()

_convert(string  $type, array  $input, string  $optional,   $result) : NULL

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

Parameters

string $type

The dependency type.

array $input

The input array.

string $optional

Indicates if it is an optional dependency.

$result

Returns

NULL