Overview

Packages

  • Pear

Classes

  • Horde_Pear_Exception
  • Horde_Pear_Package_Contents_Ignore_Composite
  • Horde_Pear_Package_Contents_Ignore_Dot
  • Horde_Pear_Package_Contents_Ignore_Git
  • Horde_Pear_Package_Contents_Ignore_Hidden
  • Horde_Pear_Package_Contents_Ignore_Nothing
  • Horde_Pear_Package_Contents_Ignore_Patterns
  • Horde_Pear_Package_Contents_Include_All
  • Horde_Pear_Package_Contents_InstallAs_Horde
  • Horde_Pear_Package_Contents_InstallAs_HordeApplication
  • Horde_Pear_Package_Contents_InstallAs_HordeComponent
  • Horde_Pear_Package_Contents_InstallAs_HordeRole
  • Horde_Pear_Package_Contents_List
  • Horde_Pear_Package_Contents_Role_HordeApplication
  • Horde_Pear_Package_Contents_Role_HordeComponent
  • Horde_Pear_Package_Dependencies
  • Horde_Pear_Package_Task_UpdateContents
  • Horde_Pear_Package_Type_Horde
  • Horde_Pear_Package_Xml
  • Horde_Pear_Package_Xml_Contents
  • Horde_Pear_Package_Xml_Directory
  • Horde_Pear_Package_Xml_Element_Directory
  • Horde_Pear_Package_Xml_Element_File
  • Horde_Pear_Package_Xml_Factory
  • Horde_Pear_Registry
  • Horde_Pear_Remote
  • Horde_Pear_Rest
  • Horde_Pear_Rest_Dependencies
  • Horde_Pear_Rest_Package
  • Horde_Pear_Rest_PackageList
  • Horde_Pear_Rest_Release
  • Horde_Pear_Rest_Releases

Interfaces

  • Horde_Pear_Package_Contents
  • Horde_Pear_Package_Contents_Ignore
  • Horde_Pear_Package_Contents_Include
  • Horde_Pear_Package_Contents_InstallAs
  • Horde_Pear_Package_Contents_Role
  • Horde_Pear_Package_Task
  • Horde_Pear_Package_Type
  • Overview
  • Package
  • Class
  • Tree

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.

Package: Pear
Category: Horde
License: LGPL 2.1
Author: Gunnar Wrobel wrobel@pardus.de
Link: http://pear.horde.org/index.php?package=Pear
Located at Horde/Pear/Remote.php
Methods summary
public
# __construct( string $server = 'pear.horde.org', Horde_Pear_Rest $rest = null )

Constructor

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

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

Horde_Pear_Rest_Release|boolean

The details of the most stable release. Or false if no release was found.

API documentation generated by ApiGen