PHP 클래스 Components_Component_Archive, 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.
저자: Gunnar Wrobel ([email protected])
저자: Fabien Potencier ([email protected])
상속: extends Components_Component_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__construct ( $archive, Components_Config $config, Components_Component_Factory $factory ) Constructor.
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.

비공개 메소드들

메소드 설명
_loadPackageFromArchive ( ) : string Return the package.xml file from the archive.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $archive, Components_Config $config, Components_Component_Factory $factory )
$config Components_Config The configuration for the current job.
$factory Components_Component_Factory Generator for additional helpers.

getPackageXml() 보호된 메소드

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

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.