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. |
/** * 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; }
* * @category Horde * @package Horde_Pear * @author Gunnar Wrobel <*****@*****.**> * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @link http://www.horde.org/libraries/Horde_Pear */ /** * The Autoloader allows us to omit "require/include" statements. */ require_once 'Horde/Autoloader/Default.php'; $pear = new Horde_Pear_Remote(); print $pear->getChannel(); print "\n\n"; print join("\n", $pear->listPackages()); print "\n\n"; print $pear->getLatestRelease('Horde_Core'); print "\n\n"; print $pear->getLatestDownloadUri('Horde_Core'); print "\n\n"; print_r($pear->getLatestDetails('Horde_Core')); print "\n\n"; print $pear->releaseExists('Horde_Core', '1.7.0'); print "\n\n"; print count($pear->getDependencies('Horde_Exception', '1.0.0')); print "\n\n"; print $pear->getPackageXml('Horde_Exception', '1.0.0')->getName(); print "\n\n"; $pear = new Horde_Pear_Remote('pear.phpunit.de'); print join("\n", $pear->listPackages()); print "\n\n";