class ChannelRest11Reader extends BaseChannelReader (View source)

Read PEAR packages using REST 1.1 interface

At version 1.1 package descriptions read from: {baseUrl}/c/categories.xml {baseUrl}/c/{category}/packagesinfo.xml

Constants

CHANNEL_NS

PEAR REST Interface namespaces

ALL_CATEGORIES_NS

CATEGORY_PACKAGES_INFO_NS

ALL_PACKAGES_NS

ALL_RELEASES_NS

PACKAGE_INFO_NS

Methods

__construct(RemoteFilesystem $rfs)

No description

requestContent(string $origin, string $path)

Read content from remote filesystem.

requestXml(string $origin, string $path)

Read xml content from remote filesystem

read(string $baseUrl)

Reads package descriptions using PEAR Rest 1.1 interface

Details

__construct(RemoteFilesystem $rfs)

Parameters

RemoteFilesystem $rfs

protected SimpleXMLElement requestContent(string $origin, string $path)

Read content from remote filesystem.

Parameters

string $origin server
string $path relative path to content

Return Value

SimpleXMLElement

Exceptions

UnexpectedValueException

protected SimpleXMLElement requestXml(string $origin, string $path)

Read xml content from remote filesystem

Parameters

string $origin server
string $path relative path to content

Return Value

SimpleXMLElement

Exceptions

UnexpectedValueException

PackageInfo[] read(string $baseUrl)

Reads package descriptions using PEAR Rest 1.1 interface

Parameters

string $baseUrl base Url interface

Return Value

PackageInfo[]