class ChannelRest10Reader extends BaseChannelReader (View source)

Read PEAR packages using REST 1.0 interface

At version 1.0 package descriptions read from: {baseUrl}/p/packages.xml {baseUrl}/p/{package}/info.xml {baseUrl}/p/{package}/allreleases.xml {baseUrl}/p/{package}/deps.{version}.txt

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.0 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.0 interface

Parameters

string $baseUrl base Url interface

Return Value

PackageInfo[]