Update
in package
Table of Contents
Methods
- exec() : void
- init() : void
- handleSuccess() : void
- 成功時の処理
- notify() : void
- システム更新結果をメール通知
- removeDirectory() : void
- ディレクトリを削除
- updateDatabase() : void
- データベースを更新
- updateSystemFiles() : void
- システムファイルを更新
- validatePackage() : CheckForUpdate
- パッケージを検証
Methods
exec()
public
exec(LoggerInterface $logger, Lock $lockService[, int $range = CheckForUpdate::PATCH_VERSION ][, bool $createSetup = true ]) : void
Parameters
- $logger : LoggerInterface
- $lockService : Lock
- $range : int = CheckForUpdate::PATCH_VERSION
- $createSetup : bool = true
init()
public
init() : void
handleSuccess()
成功時の処理
protected
handleSuccess(CheckForUpdate $package) : void
Parameters
- $package : CheckForUpdate
notify()
システム更新結果をメール通知
protected
notify("success"|"rollback"|"failed" $result, string $message[, string $version = '' ]) : void
Parameters
- $result : "success"|"rollback"|"failed"
- $message : string
- $version : string = ''
removeDirectory()
ディレクトリを削除
protected
removeDirectory(string $path) : void
Parameters
- $path : string
updateDatabase()
データベースを更新
protected
updateDatabase(LoggerInterface $logger, string $version) : void
Parameters
- $logger : LoggerInterface
- $version : string
updateSystemFiles()
システムファイルを更新
protected
updateSystemFiles(LoggerInterface $logger, string $downloadUrl, string $rootDir, string $destDir, bool $createSetup) : void
Parameters
- $logger : LoggerInterface
- $downloadUrl : string
- $rootDir : string
- $destDir : string
- $createSetup : bool
Tags
validatePackage()
パッケージを検証
protected
validatePackage([int $range = CheckForUpdate::PATCH_VERSION ]) : CheckForUpdate
Parameters
- $range : int = CheckForUpdate::PATCH_VERSION