Class Horde_Pear_Remote
Remote access to a PEAR server.
Copyright 2011-2012 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.
Methods summary
public
|
#
__construct( string $server = 'pear.horde.org', Horde_Pear_Rest $rest = null )
Constructor
Parameters
- $server
- The server name.
- $rest
- <p>The accessor to the PEAR server rest
interface.</p>
|
public
array
|
#
listPackages( )
Return the list of package names.
Return the list of package names.
Returns
array The package names.
|
public
string|boolean
|
#
getLatestRelease( string $package, string $stability = 'stable' )
Return the latest release for a specific package and stability.
Return the latest release for a specific package and stability.
Parameters
- $package
- The name of the package.
- $stability
- <p>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.</p>
Returns
string|boolean The latest version for this stability or false if
no version with this stability level exists.
|
public
array
|
#
getDependencies( string $package, string $version )
Retrieve the dependencies for the specified package release.
Retrieve the dependencies for the specified package release.
Parameters
- $package
- The package name.
- $version
- The package version.
Returns
array The package dependencies.
|
public
Horde_Pear_Package_Xml
|
#
getPackageXml( string $package, string $version )
Return the package.xml for the specified release from the server.
Return the package.xml for the specified release from the server.
Parameters
- $package
- The name of the package.
- $version
- The version of the release.
Returns
|
public
string
|
#
getChannel( )
Return the channel.xml from the server.
Return the channel.xml from the server.
Returns
string The content of the channel.xml file.
|
public
boolean
|
#
releaseExists( string $package, string $version )
Test if the specified release exists.
Test if the specified release exists.
Parameters
- $package
- The name of the package.
- $version
- The version of the release.
Returns
boolean True if the release exists.
|
public
string
|
#
getLatestDownloadUri( string $package, string $stability = 'stable' )
Retrieve the download location for the latest package release.
Retrieve the download location for the latest package release.
Parameters
- $package
- The package name.
- $stability
- <p>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.</p>
Returns
string The URI for downloading the release.
Throws
Horde_Pear_Exception In case there is no release for
this package with the specified
stability level.
|
public
Horde_Pear_Rest_Release |boolean
|
#
getLatestDetails( string $package, string $stability = 'stable' )
Retrieve the release details for the most stable package version.
Retrieve the release details for the most stable package version.
Parameters
- $package
- The package name.
- $stability
- <p>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.</p>
Returns
|