PHP Class DbPatch_Core_Application

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

Protected Properties

Свойство Type Description
$config Zend_Config

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

protected getCommandRunner ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Runner
$writer DbPatch_Core_Writer
Résultat DbPatch_Command_Runner

getConfig() protected méthode

protected getConfig ( string $filename = null ) : null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml
$filename string
Résultat null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml

getConsole() protected méthode

protected getConsole ( array $argv ) : DbPatch_Core_Console
$argv array
Résultat DbPatch_Core_Console

getDb() protected méthode

protected getDb ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : null | DbPatch_Core_Db
$config Zend_Config | Zend_Config_Ini | Zend_Config_Xml
Résultat null | DbPatch_Core_Db

getWriter() protected méthode

protected getWriter ( ) : DbPatch_Core_Writer
Résultat DbPatch_Core_Writer

getWriterColor() protected méthode

protected getWriterColor ( ) : DbPatch_Core_Color
Résultat DbPatch_Core_Color

main() public méthode

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

setConfig() public méthode

public setConfig ( Zend_Config $config )
$config Zend_Config

Property Details

$config protected_oe property

protected Zend_Config $config
Résultat Zend_Config