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($origin, $path)

Read content from remote filesystem.

requestXml($origin, $path)

Read xml content from remote filesystem

read($baseUrl)

Reads package descriptions using PEAR Rest 1.1 interface

Details

__construct(RemoteFilesystem $rfs)

Parameters

RemoteFilesystem $rfs

protected SimpleXMLElement requestContent($origin, $path)

Read content from remote filesystem.

Parameters

$origin string server
$path string relative path to content

Return Value

SimpleXMLElement

Exceptions

UnexpectedValueException

protected SimpleXMLElement requestXml($origin, $path)

Read xml content from remote filesystem

Parameters

$origin string server
$path string relative path to content

Return Value

SimpleXMLElement

Exceptions

UnexpectedValueException

PackageInfo[] read($baseUrl)

Reads package descriptions using PEAR Rest 1.1 interface

Parameters

$baseUrl string base Url interface

Return Value

PackageInfo[]