PHP Class Horde_Pear_Rest_PackageList, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: extends Horde_Xml_Element_List
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( resource | string $xml ) Constructor.
getPackageLink ( string $package ) : string Return the link for additional information on the specified package.
getPackages ( ) : array Return the list of packages.
listPackages ( ) : array Return the list of package names.

Protected Methods

Method Description
_buildListItemCache ( ) : array Build the list of elements.

Private Methods

Method Description
_buildPackageList ( ) : array Build the list of packages.

Method Details

__construct() public method

Constructor.
public __construct ( resource | string $xml )
$xml resource | string The XML document received from the server.

_buildListItemCache() protected method

Build the list of elements.
protected _buildListItemCache ( ) : array
return array The list of elements.

getPackages() public method

Return the list of packages.
public getPackages ( ) : array
return array The packages.

listPackages() public method

Return the list of package names.
public listPackages ( ) : array
return array The package names.