PHP 클래스 DbPatch_Command_Update

저자: Sandy Pleyte
저자: Martijn De Letter
상속: extends DbPatch_Command_Abstract
파일 보기 프로젝트 열기: dbpatch/dbpatch 1 사용 예제들

공개 메소드들

메소드 설명
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