PHP 클래스 Horde_Pear_Rest, horde

This implements a subset of the REST methods detailed in http://pear.php.net/manual/en/core.rest.php
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
_get ( string $url ) : resource Fetch the provided URL as stream.
_read ( string $url ) : string Fetch the provided URL as string.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Http_Client $client, string $url )
$client Horde_Http_Client The HTTP client.
$url string The URL for the remote PEAR server.

fetchChannelXml() 공개 메소드

Return the channel.xml from the server.
public fetchChannelXml ( ) : string
리턴 string The content of the channel.xml file.

fetchLatestPackageReleases() 공개 메소드

Return the latest releases for a specific package.
public fetchLatestPackageReleases ( string $package ) : array
$package string The name of the package to retrieve the latest releases for.
리턴 array A list of latest releases per level of stability.

fetchLatestRelease() 공개 메소드

Return the latest release version for a specific package.
public fetchLatestRelease ( string $package ) : string
$package string The name of the package to retrieve the latest release for.
리턴 string The version of the latest release.

fetchPackageDependencies() 공개 메소드

Return the serialized package dependencies for a specific release from the server.
public fetchPackageDependencies ( string $package, string $version ) : string
$package string The name of the package.
$version string The version of the release.
리턴 string The serialized dependencies.

fetchPackageInformation() 공개 메소드

Return the information on a specific package from the server.
public fetchPackageInformation ( string $package ) : resource
$package string The name of the package to retrieve information for.
리턴 resource A stream with the package information.

fetchPackageList() 공개 메소드

Return the complete list of packages on the server.
public fetchPackageList ( ) : resource
리턴 resource A stream with the package list.

fetchPackageReleases() 공개 메소드

Return the release list for a specific package from the server.
public fetchPackageReleases ( string $package ) : resource
$package string The name of the package to retrieve the releases for.
리턴 resource A stream with the package release information.

fetchReleaseInformation() 공개 메소드

Return the release information for a specific package version from the server.
public fetchReleaseInformation ( string $package, string $version ) : resource
$package string The name of the package.
$version string The version of the release.
리턴 resource A stream with the package release information.

fetchReleasePackageXml() 공개 메소드

Return the package.xml for a specific release from the server.
public fetchReleasePackageXml ( string $package, string $version ) : resource
$package string The name of the package.
$version string The version of the release.
리턴 resource A stream with the package.xml information.

releaseExists() 공개 메소드

Test if the specified release exists.
public releaseExists ( string $package, string $version ) : boolean
$package string The name of the package.
$version string The version of the release.
리턴 boolean True if the release exists.

setServer() 공개 메소드

Set the server name.
public setServer ( $server ) : null
리턴 null