Method | Description | |
---|---|---|
__construct ( Horde_Http_Client $client, string $url ) | Constructor. | |
fetchChannelXml ( ) : string | Return the channel.xml from the server. | |
fetchLatestPackageReleases ( string $package ) : array | Return the latest releases for a specific package. | |
fetchLatestRelease ( string $package ) : string | Return the latest release version for a specific package. | |
fetchPackageDependencies ( string $package, string $version ) : string | Return the serialized package dependencies for a specific release from the server. | |
fetchPackageInformation ( string $package ) : resource | Return the information on a specific package from the server. | |
fetchPackageList ( ) : resource | Return the complete list of packages on the server. | |
fetchPackageReleases ( string $package ) : resource | Return the release list for a specific package from the server. | |
fetchReleaseInformation ( string $package, string $version ) : resource | Return the release information for a specific package version from the server. | |
fetchReleasePackageXml ( string $package, string $version ) : resource | Return the package.xml for a specific release from the server. | |
releaseExists ( string $package, string $version ) : boolean | Test if the specified release exists. | |
setServer ( $server ) : null | Set the server name. |
Method | Description | |
---|---|---|
_get ( string $url ) : resource | Fetch the provided URL as stream. | |
_read ( string $url ) : string | Fetch the provided URL as string. |
public __construct ( Horde_Http_Client $client, string $url ) | ||
$client | Horde_Http_Client | The HTTP client. |
$url | string | The URL for the remote PEAR server. |
public fetchChannelXml ( ) : string | ||
return | string | The content of the channel.xml file. |
public fetchLatestPackageReleases ( string $package ) : array | ||
$package | string | The name of the package to retrieve the latest releases for. |
return | array | A list of latest releases per level of stability. |
public fetchLatestRelease ( string $package ) : string | ||
$package | string | The name of the package to retrieve the latest release for. |
return | string | The version of the latest release. |
public fetchPackageInformation ( string $package ) : resource | ||
$package | string | The name of the package to retrieve information for. |
return | resource | A stream with the package information. |
public fetchPackageList ( ) : resource | ||
return | resource | A stream with the package list. |
public fetchPackageReleases ( string $package ) : resource | ||
$package | string | The name of the package to retrieve the releases for. |
return | resource | A stream with the package release information. |
public fetchReleaseInformation ( string $package, string $version ) : resource | ||
$package | string | The name of the package. |
$version | string | The version of the release. |
return | resource | A stream with the package release information. |
public fetchReleasePackageXml ( string $package, string $version ) : resource | ||
$package | string | The name of the package. |
$version | string | The version of the release. |
return | resource | A stream with the package.xml information. |