\Horde_Pear_Rest_PackageList

A parser for a package list response from a PEAR server.

Summary

Methods
Properties
Constants
__construct()
listPackages()
getPackages()
getPackageLink()
No public properties found
No constants found
_buildListItemCache()
No protected properties found
N/A
_buildPackageList()
$_packages
N/A

Properties

$_packages

$_packages : array

The list of packages.

Type

array

Methods

__construct()

__construct(resource|string  $xml) 

Constructor.

Parameters

resource|string $xml

The XML document received from the server.

listPackages()

listPackages() : array

Return the list of package names.

Returns

array —

The package names.

getPackages()

getPackages() : array

Return the list of packages.

Returns

array —

The packages.

getPackageLink()

getPackageLink(string  $package) : string

Return the link for additional information on the specified package.

Parameters

string $package

The package name.

Returns

string —

The URL for additional information.

_buildListItemCache()

_buildListItemCache() : array

Build the list of elements.

Returns

array —

The list of elements.

_buildPackageList()

_buildPackageList() : array

Build the list of packages.

Returns

array —

The list of elements.