PHP Class DbPatch_Command_Update

Author: Sandy Pleyte
Author: Martijn De Letter
Inheritance: extends DbPatch_Command_Abstract
Afficher le fichier Open project: dbpatch/dbpatch Class Usage Examples

Méthodes publiques

Méthode Description
execute ( ) : void
showHelp ( string $command = 'update' ) : void

Méthodes protégées

Méthode Description
getAppliedPatches ( integer $limit, string $branch = '' ) : array Return the already applied patches from the changelog table
getLastPatchNumber ( string $branch ) : integer Returns the last applied patch number from the database
getPatchNumbersToSkip ( array $params, array $patchFiles ) : array Determine which patch numbers can be skipped We may only skip numbers that are ready to apply

Method Details

execute() public méthode

public execute ( ) : void
Résultat void

getAppliedPatches() protected méthode

Return the already applied patches from the changelog table
protected getAppliedPatches ( integer $limit, string $branch = '' ) : array
$limit integer
$branch string
Résultat array

getLastPatchNumber() protected méthode

Returns the last applied patch number from the database
protected getLastPatchNumber ( string $branch ) : integer
$branch string
Résultat integer

getPatchNumbersToSkip() protected méthode

These patches will not be executed and marked as skipped in the changelog
protected getPatchNumbersToSkip ( array $params, array $patchFiles ) : array
$params array commandline params
$patchFiles array patches that are ready to apply
Résultat array $patchNumbers patchnumbers to skip

showHelp() public méthode

public showHelp ( string $command = 'update' ) : void
$command string Command name
Résultat void