PHP Class DbPatch_Core_Application

Setup different objects and fireup the command runner
Author: Sandy Pleyte
Author: Martijn De Letter
Exibir arquivo Open project: dbpatch/dbpatch Class Usage Examples

Protected Properties

Property Type Description
$config Zend_Config

Public Methods

Method Description
main ( ) : void Initialize the dbpatch application Typically called from bin/dbpatch.php
setConfig ( Zend_Config $config )

Protected Methods

Method Description
getCommandRunner ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Runner
getConfig ( string $filename = null ) : null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml
getConsole ( array $argv ) : DbPatch_Core_Console
getDb ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : null | DbPatch_Core_Db
getWriter ( ) : DbPatch_Core_Writer
getWriterColor ( ) : DbPatch_Core_Color

Method Details

getCommandRunner() protected method

protected getCommandRunner ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Runner
$writer DbPatch_Core_Writer
return DbPatch_Command_Runner

getConfig() protected method

protected getConfig ( string $filename = null ) : null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml
$filename string
return null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml

getConsole() protected method

protected getConsole ( array $argv ) : DbPatch_Core_Console
$argv array
return DbPatch_Core_Console

getDb() protected method

protected getDb ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : null | DbPatch_Core_Db
$config Zend_Config | Zend_Config_Ini | Zend_Config_Xml
return null | DbPatch_Core_Db

getWriter() protected method

protected getWriter ( ) : DbPatch_Core_Writer
return DbPatch_Core_Writer

getWriterColor() protected method

protected getWriterColor ( ) : DbPatch_Core_Color
return DbPatch_Core_Color

main() public method

Initialize the dbpatch application Typically called from bin/dbpatch.php
public main ( ) : void
return void

setConfig() public method

public setConfig ( Zend_Config $config )
$config Zend_Config

Property Details

$config protected_oe property

protected Zend_Config $config
return Zend_Config