Свойство | Type | Description | |
---|---|---|---|
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | ||
$console | DbPatch_Core_Console | ||
$db | DbPatch_Core_Db | ||
$options | array | ||
$writer | DbPatch_Core_Writer |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 | ||
Résultat | boolean |
protected createChangelog ( ) : boolean | ||
Résultat | boolean |
protected detectBranches ( ) : array | ||
Résultat | array |
protected dumpDatabase ( string $filename, $noData = false ) : boolean | ||
$filename | string | |
Résultat | boolean |
public getConsole ( ) : DbPatch_Core_Console | null | ||
Résultat | DbPatch_Core_Console | null |
protected getDumpFilename ( ) : string | ||
Résultat | string |
public getPatchDirectory ( ) : string | boolean | ||
Résultat | string | boolean |
public setConfig ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : DbPatch_Command_Abstract | ||
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | |
Résultat | DbPatch_Command_Abstract |
public setConsole ( DbPatch_Core_Console $console ) : DbPatch_Command_Abstract | ||
$console | DbPatch_Core_Console | |
Résultat | DbPatch_Command_Abstract |
public setDb ( DbPatch_Core_Db $db ) : DbPatch_Command_Abstract | ||
$db | DbPatch_Core_Db | |
Résultat | DbPatch_Command_Abstract |
public setWriter ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Abstract | ||
$writer | DbPatch_Core_Writer | |
Résultat | DbPatch_Command_Abstract |
public trimTrailingSlashes ( string $str ) : string | ||
$str | string | String |
Résultat | string |
protected validateChangelog ( ) : boolean | ||
Résultat | boolean |
protected Zend_Config|Zend_Config_Ini|Zend_Config_Xml $config | ||
Résultat | Zend_Config | Zend_Config_Ini | Zend_Config_Xml |
protected DbPatch_Core_Console $console | ||
Résultat | DbPatch_Core_Console |