Documentation

Horde_Pear_Rest_PackageList extends Horde_Xml_Element_List
in package

A parser for a package list response 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

$_packages  : array<string|int, mixed>
The list of packages.
__construct()  : mixed
Constructor.
getPackageLink()  : string
Return the link for additional information on the specified package.
getPackages()  : array<string|int, mixed>
Return the list of packages.
listPackages()  : array<string|int, mixed>
Return the list of package names.
_buildListItemCache()  : array<string|int, mixed>
Build the list of elements.
_buildPackageList()  : array<string|int, mixed>
Build the list of packages.

Properties

$_packages

The list of packages.

private array<string|int, mixed> $_packages

Methods

__construct()

Constructor.

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

The XML document received from the server.

Return values
mixed

Return the link for additional information on the specified package.

public getPackageLink(string $package) : string
Parameters
$package : string

The package name.

Return values
string

The URL for additional information.

getPackages()

Return the list of packages.

public getPackages() : array<string|int, mixed>
Return values
array<string|int, mixed>

The packages.

listPackages()

Return the list of package names.

public listPackages() : array<string|int, mixed>
Return values
array<string|int, mixed>

The package names.

_buildListItemCache()

Build the list of elements.

protected _buildListItemCache() : array<string|int, mixed>
Return values
array<string|int, mixed>

The list of elements.

_buildPackageList()

Build the list of packages.

private _buildPackageList() : array<string|int, mixed>
Return values
array<string|int, mixed>

The list of elements.

Search results