PHP 클래스 Horde_Pear_Remote, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $server = 'pear.horde.org', Horde_Pear_Rest $rest = null ) Constructor
getChannel ( ) : string Return the channel.xml from the server.
getDependencies ( string $package, string $version ) : array Retrieve the dependencies for the specified package release.
getLatestDetails ( string $package, string $stability = 'stable' ) : Horde_Pear_Rest_Release | boolean Retrieve the release details for the most stable package version.
getLatestDownloadUri ( string $package, string $stability = 'stable' ) : string Retrieve the download location for the latest package release.
getLatestRelease ( string $package, string $stability = 'stable' ) : string | boolean Return the latest release for a specific package and stability.
getPackageXml ( string $package, string $version ) : Horde_Pear_Package_Xml Return the package.xml for the specified release from the server.
getReleases ( string $package ) : Horde_Pear_Rest_Releases Returns all release for a specific package.
listPackages ( ) : array Return the list of package names.
releaseExists ( string $package, string $version ) : boolean Test if the specified release exists.

비공개 메소드들

메소드 설명
_getRelease ( string $package, string $version ) : Horde_Pear_Rest_Release Return the release information wrapper for a specific package version from the server.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $server = 'pear.horde.org', Horde_Pear_Rest $rest = null )
$server string The server name.
$rest Horde_Pear_Rest The accessor to the PEAR server rest interface.

getChannel() 공개 메소드

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

getDependencies() 공개 메소드

Retrieve the dependencies for the specified package release.
public getDependencies ( string $package, string $version ) : array
$package string The package name.
$version string The package version.
리턴 array The package dependencies.

getLatestDetails() 공개 메소드

Retrieve the release details for the most stable package version.
public getLatestDetails ( string $package, string $stability = 'stable' ) : Horde_Pear_Rest_Release | boolean
$package string The package name.
$stability string The stability of the release. Must be one of "stable", "beta", "alpha", or "devel". The default is "stable" If you explicitely set the $stability parameter to NULL the method will return the details for the highest release version independent of the stability.
리턴 Horde_Pear_Rest_Release | boolean The details of the most stable release. Or false if no release was found.

getLatestDownloadUri() 공개 메소드

Retrieve the download location for the latest package release.
public getLatestDownloadUri ( string $package, string $stability = 'stable' ) : string
$package string The package name.
$stability string The stability the release should have. Must be one of "stable", "beta", "alpha", or "devel". The default is "stable" If you explicitely set the $stability parameter to NULL the method will return the download URI for the highest release version independent of the stability.
리턴 string The URI for downloading the release.

getLatestRelease() 공개 메소드

Return the latest release for a specific package and stability.
public getLatestRelease ( string $package, string $stability = 'stable' ) : string | boolean
$package string The name of the package.
$stability string The stability of the release. Must be one of "stable", "beta", "alpha", or "devel". The default is "stable" If you explicitely set the $stability parameter to NULL the method will return the highest release version independent of the stability.
리턴 string | boolean The latest version for this stability or false if no version with this stability level exists.

getPackageXml() 공개 메소드

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.
리턴 Horde_Pear_Package_Xml The package.xml handler.

getReleases() 공개 메소드

Returns all release for a specific package.
public getReleases ( string $package ) : Horde_Pear_Rest_Releases
$package string The name of the package.
리턴 Horde_Pear_Rest_Releases A list of releases.

listPackages() 공개 메소드

Return the list of package names.
public listPackages ( ) : array
리턴 array The package names.

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.