PHP 클래스 Components_Component_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.
상속: extends Components_Component_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__construct ( string $name, string $stability, string $channel, Horde_Pear_Remote $remote, Horde_Http_Client $client, Components_Config $config, Components_Component_Factory $factory ) Constructor.
getChannel ( ) : string Return the channel of the component.
getData ( ) : array Return a data array with the most relevant information about this component.
getDependencies ( ) : array Return the dependencies for the component.
getName ( ) : string Return the name of the component.
getPreviousVersion ( ) : string Returns the previous version of the component.
getVersion ( ) : string Return the version of the component.
install ( Components_Pear_Environment $env, array $options = [], string $reason = '' ) : null Install a component.
placeArchive ( string $destination, array $options = [] ) : array Place the component source archive at the specified location.

보호된 메소드들

메소드 설명
getPackageXml ( ) : Horde_Pear_Package_Xml Return a PEAR package representation for the component.

비공개 메소드들

메소드 설명
_getDownloadUri ( ) : string Return the download URI of the component.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $name, string $stability, string $channel, Horde_Pear_Remote $remote, Horde_Http_Client $client, Components_Config $config, Components_Component_Factory $factory )
$name string Component name.
$stability string Component stability.
$channel string Component channel.
$remote Horde_Pear_Remote Remote channel handler.
$client Horde_Http_Client The HTTP client for remote access.
$config Components_Config The configuration for the current job.
$factory Components_Component_Factory Generator for additional helpers.

getChannel() 공개 메소드

Return the channel of the component.
public getChannel ( ) : string
리턴 string The component channel.

getData() 공개 메소드

Return a data array with the most relevant information about this component.
public getData ( ) : array
리턴 array Information about this component.

getDependencies() 공개 메소드

Return the dependencies for the component.
public getDependencies ( ) : array
리턴 array The component dependencies.

getName() 공개 메소드

Return the name of the component.
public getName ( ) : string
리턴 string The component name.

getPackageXml() 보호된 메소드

Return a PEAR package representation for the component.
protected getPackageXml ( ) : Horde_Pear_Package_Xml
리턴 Horde_Pear_Package_Xml The package representation.

getPreviousVersion() 공개 메소드

Returns the previous version of the component.
public getPreviousVersion ( ) : string
리턴 string The previous component version.

getVersion() 공개 메소드

Return the version of the component.
public getVersion ( ) : string
리턴 string The component version.

install() 공개 메소드

Install a component.
public install ( Components_Pear_Environment $env, array $options = [], string $reason = '' ) : null
$env Components_Pear_Environment The environment to install into.
$options array Install options.
$reason string Optional reason for adding the package.
리턴 null

placeArchive() 공개 메소드

Place the component source archive at the specified location.
public placeArchive ( string $destination, array $options = [] ) : array
$destination string The path to write the archive to.
$options array Options for the operation.
리턴 array An array with at least [0] the path to the resulting archive, optionally [1] an array of error strings, and [2] PEAR output.