abstract class BaseChannelReader (View source)

Base PEAR Channel reader.

Provides xml namespaces and red

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

Details

protected __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