class ChannelReader extends BaseChannelReader (View source)

PEAR Channel package reader.

Reads channel packages info from and builds Package's

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($url)

Reads PEAR channel through REST interface and builds list of packages

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

ChannelInfo read($url)

Reads PEAR channel through REST interface and builds list of packages

Parameters

$url string PEAR Channel url

Return Value

ChannelInfo

Exceptions

UnexpectedValueException