프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$console | Scalr\Upgrade\Console | Console | |
$db | ADODB_mysqli | Database instance |
메소드 | 설명 | |
---|---|---|
__construct ( object $opt ) | Constructor | |
checkFilesystemStorage ( ) | Checks filesystem storage | |
checkPid ( ) : boolean | Checks and creates pid file | |
getPathToUpdates ( ) : string | Gets path to updates | |
removePid ( ) | Removes pid | |
run ( ) : boolean | Runs upgrade process |
메소드 | 설명 | |
---|---|---|
applyUpdate ( Scalr\Upgrade\AbstractUpdate $upd ) : boolean | Applies update | |
getLastDate ( ) : string | Gets last datetime which has been processed | |
loadUpdates ( ) | Loads updates from the implemented classes |
메소드 | 설명 | |
---|---|---|
fetchMysqlStatusBefore ( string $service = 'adodb' ) | Getches statuses of the previous updates for specified database service from container | |
fetchStatusBefore ( ) | Fetches statuses of the previous updates | |
isOutdatedPid ( string $timestamp ) : boolean | Checks if pid is outdated |
protected applyUpdate ( Scalr\Upgrade\AbstractUpdate $upd ) : boolean | ||
$upd | Scalr\Upgrade\AbstractUpdate | Update to apply |
리턴 | boolean | Returns true if update is successful, false otherwise |
public static checkFilesystemStorage ( ) |
protected getLastDate ( ) : string | ||
리턴 | string | Returns UTC in format 'YYYY-MM-DD HH:ii:ss' |
public static getPathToUpdates ( ) : string | ||
리턴 | string | Returns path to updates without trailing slash |