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_Rest

REST access to a PEAR server.

This implements a subset of the REST methods detailed in http://pear.php.net/manual/en/core.rest.php

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
Link: http://pear.php.net/manual/en/core.rest.php
Located at Horde/Pear/Rest.php
Methods summary
public
# __construct( Horde_Http_Client $client, string $url )

Constructor.

Constructor.

Parameters

$client
The HTTP client.
$url
The URL for the remote PEAR server.
public null
# setServer( mixed $server )

Set the server name.

Set the server name.

Returns

null

Params

string $server The server name.
public resource
# fetchPackageList( )

Return the complete list of packages on the server.

Return the complete list of packages on the server.

Returns

resource
A stream with the package list.
public resource
# fetchPackageInformation( string $package )

Return the information on a specific package from the server.

Return the information on a specific package from the server.

Parameters

$package
<p>The name of the package to retrieve information for.</p>

Returns

resource
A stream with the package information.
public resource
# fetchPackageReleases( string $package )

Return the release list for a specific package from the server.

Return the release list for a specific package from the server.

Parameters

$package
<p>The name of the package to retrieve the releases for.</p>

Returns

resource
A stream with the package release information.
public array
# fetchLatestPackageReleases( string $package )

Return the latest releases for a specific package.

Return the latest releases for a specific package.

Parameters

$package
<p>The name of the package to retrieve the latest releases for.</p>

Returns

array
A list of latest releases per level of stability.
public string
# fetchLatestRelease( string $package )

Return the latest release version for a specific package.

Return the latest release version for a specific package.

Parameters

$package
<p>The name of the package to retrieve the latest release for.</p>

Returns

string
The version of the latest release.
public resource
# fetchReleaseInformation( string $package, string $version )

Return the release information for a specific package version from the server.

Return the release information for a specific package version from the server.

Parameters

$package
The name of the package.
$version
The version of the release.

Returns

resource
A stream with the package release information.
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 resource
# fetchReleasePackageXml( string $package, string $version )

Return the package.xml for a specific release from the server.

Return the package.xml for a specific release from the server.

Parameters

$package
The name of the package.
$version
The version of the release.

Returns

resource
A stream with the package.xml information.
public string
# fetchPackageDependencies( string $package, string $version )

Return the serialized package dependencies for a specific release from the server.

Return the serialized package dependencies for a specific release from the server.

Parameters

$package
The name of the package.
$version
The version of the release.

Returns

string
The serialized dependencies.
public string
# fetchChannelXml( )

Return the channel.xml from the server.

Return the channel.xml from the server.

Returns

string
The content of the channel.xml file.
API documentation generated by ApiGen