프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | ||
$console | DbPatch_Core_Console | ||
$db | DbPatch_Core_Db | ||
$options | array | ||
$writer | DbPatch_Core_Writer |
메소드 | 설명 | |
---|---|---|
execute ( ) : void | ||
getBranch ( ) : string | ||
getConfig ( ) : null | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | ||
getConsole ( ) : DbPatch_Core_Console | null | ||
getDb ( ) : null | Zend_Db_Adapter_Abstract | ||
getOptions ( ) : array | ||
getPatch ( integer $patchNumber, string $branch ) : boolean | DbPatch_Command_Patch_Abstract | ||
getPatchDirectory ( ) : string | boolean | ||
getPatchPrefix ( ) : string | ||
getPatches ( string $branch, null | integer $searchPatchNumber = null ) : array | ||
getWriter ( ) : DbPatch_Core_Writer | null | ||
init ( ) : DbPatch_Command_Abstract | ||
setConfig ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : DbPatch_Command_Abstract | ||
setConsole ( DbPatch_Core_Console $console ) : DbPatch_Command_Abstract | ||
setDb ( DbPatch_Core_Db $db ) : DbPatch_Command_Abstract | ||
setOptions ( $options ) : void | ||
setWriter ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Abstract | ||
trimTrailingSlashes ( string $str ) : string | Remove trailing slash from string |
메소드 | 설명 | |
---|---|---|
addToChangelog ( array $patchFile, string $description = null ) : void | Store patchfile entry to the changelog table | |
changelogExists ( ) : boolean | Checks if the changelog table is present in the database | |
createChangelog ( ) : boolean | Try to create the changelog table | |
detectBranches ( ) : array | Detect the different branches that are used in the patch dir the default branch is always returned | |
dumpDatabase ( string $filename, $noData = false ) : boolean | Dump database | |
getDumpFilename ( ) : string | Create dump filename | |
isPatchApplied ( integer $patchNumber, string $branch ) : boolean | Check if the passed patch number can be found in the changelog table for the specified branch | |
showHelp ( string $command = null ) : void | Show help options for a given command | |
updateColumnType ( ) | Check column types return void | |
validateChangelog ( ) : boolean | Validate if the changelog is present in the database if not try to create the table |
protected changelogExists ( ) : boolean | ||
리턴 | boolean |
protected createChangelog ( ) : boolean | ||
리턴 | boolean |
protected detectBranches ( ) : array | ||
리턴 | array |
protected dumpDatabase ( string $filename, $noData = false ) : boolean | ||
$filename | string | |
리턴 | boolean |
public getConsole ( ) : DbPatch_Core_Console | null | ||
리턴 | DbPatch_Core_Console | null |
public setConfig ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : DbPatch_Command_Abstract | ||
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | |
리턴 | DbPatch_Command_Abstract |
public setConsole ( DbPatch_Core_Console $console ) : DbPatch_Command_Abstract | ||
$console | DbPatch_Core_Console | |
리턴 | DbPatch_Command_Abstract |
public setDb ( DbPatch_Core_Db $db ) : DbPatch_Command_Abstract | ||
$db | DbPatch_Core_Db | |
리턴 | DbPatch_Command_Abstract |
public setWriter ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Abstract | ||
$writer | DbPatch_Core_Writer | |
리턴 | DbPatch_Command_Abstract |
public trimTrailingSlashes ( string $str ) : string | ||
$str | string | String |
리턴 | string |
protected validateChangelog ( ) : boolean | ||
리턴 | boolean |
protected Zend_Config|Zend_Config_Ini|Zend_Config_Xml $config | ||
리턴 | Zend_Config | Zend_Config_Ini | Zend_Config_Xml |