Horde_Pear_Rest_PackageList::__construct PHP Method

__construct() public method

Constructor.
public __construct ( resource | string $xml )
$xml resource | string The XML document received from the server.
    public function __construct($xml)
    {
        if (is_resource($xml)) {
            rewind($xml);
            $xml = stream_get_contents($xml);
        }
        parent::registerNamespace('xlink', 'http://www.w3.org/1999/xlink');
        parent::__construct($xml);
        $this->_packages = $this->_buildPackageList();
    }