PHP Class PEAR_Command_Install

Author: Stig Bakken ([email protected])
Author: Greg Beaver ([email protected])
Inheritance: extends PEAR_Command_Common
Mostra file Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$commands {{{ properties

Public Methods

Method Description
PEAR_Command_Install ( &$ui, &$config ) PEAR_Command_Install constructor.
_filterUptodatePackages ( $packages, $command ) : list Given a list of packages, filter out those ones that are already up to date
_parseIni ( $filename )
disableExtension ( $binaries, $type )
doBundle ( $command, $options, $params ) * (cox) It just downloads and untars the package, does not do any check that the PEAR_Installer::_installFile() does.
doInstall ( $command, $options, $params ) {{{ doInstall()
doRunScripts ( $command, $options, $params ) }}}
doUninstall ( $command, $options, $params ) {{{ doUninstall()
doUpgradeAll ( $command, $options, $params ) {{{ doUpgradeAll()
enableExtension ( $binaries, $type )
getDownloader ( &$ui, $options, &$config ) For unit testing purposes
getInstaller ( &$ui ) For unit testing purposes

Method Details

PEAR_Command_Install() public method

PEAR_Command_Install constructor.
public PEAR_Command_Install ( &$ui, &$config )

_filterUptodatePackages() public method

Given a list of packages, filter out those ones that are already up to date
public _filterUptodatePackages ( $packages, $command ) : list
return list of packages that can be upgraded

_parseIni() public method

public _parseIni ( $filename )

disableExtension() public method

public disableExtension ( $binaries, $type )

doBundle() public method

* (cox) It just downloads and untars the package, does not do any check that the PEAR_Installer::_installFile() does.
public doBundle ( $command, $options, $params )

doInstall() public method

{{{ doInstall()
public doInstall ( $command, $options, $params )

doRunScripts() public method

}}}
public doRunScripts ( $command, $options, $params )

doUninstall() public method

{{{ doUninstall()
public doUninstall ( $command, $options, $params )

doUpgradeAll() public method

{{{ doUpgradeAll()
public doUpgradeAll ( $command, $options, $params )

enableExtension() public method

public enableExtension ( $binaries, $type )

getDownloader() public method

For unit testing purposes
public getDownloader ( &$ui, $options, &$config )

getInstaller() public method

For unit testing purposes
public getInstaller ( &$ui )

Property Details

$commands public_oe property

{{{ properties
public $commands