Method | Description | |
---|---|---|
__construct ( Components_Output $output ) | Constructor. | |
addChannel ( string $channel, array $options = [], string $reason = '' ) : null | Add a channel within the install location. | |
addComponent ( string $component, string $install, array $options, string $info, string $reason = '', array $warnings = [] ) : null | Add a component to the environemnt. | |
channelExists ( string $channel ) : boolean | Test if a channel exists within the install location. | |
createPearConfig ( ) | ||
getPearConfig ( ) | ||
linkPackageFromSource ( string $package, string $reason = '' ) : null | Add a package based on a source directory. | |
provideChannel ( string $channel, array $options = [], string $reason = '' ) : null | Ensure the specified channel exists within the install location. | |
setChannelDirectory ( &$options ) : null | Set the path to the channel directory. | |
setFactory ( Components_Pear_Factory $factory ) : null | Define the factory that creates our PEAR dependencies. | |
setLocation ( string $base_directory, string $config_file ) : null | Set the path to the install location. | |
setResourceDirectories ( &$options ) : null | Set the paths to the resource directories. | |
setSourceDirectory ( &$options ) : null | Set the path to the source directory. |
Method | Description | |
---|---|---|
_checkSetup ( ) : null | Validate that the required instance parameters are set. | |
getInstallationHandler ( ) : PEAR_Command_Install | Provide the PEAR specific installer. |
public __construct ( Components_Output $output ) | ||
$output | Components_Output | The output handler. |
public addComponent ( string $component, string $install, array $options, string $info, string $reason = '', array $warnings = [] ) : null | ||
$component | string | The name of the component that should be installed. |
$install | string | The package that should be installed. |
$options | array | PEAR specific installation opions. |
$info | string | Installation details. |
$reason | string | Optional reason for adding the package. |
$warnings | array | Optional warnings that should be displayed to the user. |
return | null |
public channelExists ( string $channel ) : boolean | ||
$channel | string | The channel name. |
return | boolean | True if the channel exists. |
public setChannelDirectory ( &$options ) : null | ||
return | null |
public setFactory ( Components_Pear_Factory $factory ) : null | ||
$factory | Components_Pear_Factory | |
return | null |
public setResourceDirectories ( &$options ) : null | ||
return | null |
public setSourceDirectory ( &$options ) : null | ||
return | null |