Horde_Pear_Remote::getPackageXml PHP Method

getPackageXml() public method

Return the package.xml for the specified release from the server.
public getPackageXml ( string $package, string $version ) : Horde_Pear_Package_Xml
$package string The name of the package.
$version string The version of the release.
return Horde_Pear_Package_Xml The package.xml handler.
    public function getPackageXml($package, $version)
    {
        return new Horde_Pear_Package_Xml($this->_rest->fetchReleasePackageXml($package, $version));
    }

Usage Example

コード例 #1
0
ファイル: Remote.php プロジェクト: jubinpatel/horde
 /**
  * Return a PEAR package representation for the component.
  *
  * @return Horde_Pear_Package_Xml The package representation.
  */
 protected function getPackageXml()
 {
     if (!isset($this->_package)) {
         $this->_package = $this->_remote->getPackageXml($this->getName(), $this->getVersion());
     }
     return $this->_package;
 }
All Usage Examples Of Horde_Pear_Remote::getPackageXml