PHP Класс DbPatch_Command_Update

Автор: Sandy Pleyte
Автор: Martijn De Letter
Наследование: extends DbPatch_Command_Abstract
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
execute ( ) : void
showHelp ( string $command = 'update' ) : void

Защищенные методы

Метод Описание
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

Описание методов

execute() публичный Метод

public execute ( ) : void
Результат void

getAppliedPatches() защищенный Метод

Return the already applied patches from the changelog table
protected getAppliedPatches ( integer $limit, string $branch = '' ) : array
$limit integer
$branch string
Результат array

getLastPatchNumber() защищенный Метод

Returns the last applied patch number from the database
protected getLastPatchNumber ( string $branch ) : integer
$branch string
Результат integer

getPatchNumbersToSkip() защищенный Метод

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
Результат array $patchNumbers patchnumbers to skip

showHelp() публичный Метод

public showHelp ( string $command = 'update' ) : void
$command string Command name
Результат void