PHP 클래스 UpgradeTool, pkp-lib

상속: extends CommandLineTool
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$command command to execute (check|upgrade|download)

공개 메소드들

메소드 설명
__construct ( $argv = [] ) Constructor.
check ( ) Perform version check against latest available version.
checkVersion ( $versionInfo, $displayInfo = false ) Perform version check.
download ( ) Download latest package.
execute ( ) Execute the specified command.
latest ( ) Print information about the latest available version.
log ( $message ) Log install message to stdout.
promptContinue ( $prompt = "Continue?" ) Prompt user for yes/no input (default no).
upgrade ( ) Run upgrade script.
usage ( ) Print command usage information.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $argv = [] )
$argv array command-line arguments

check() 공개 메소드

Perform version check against latest available version.
public check ( )

checkVersion() 공개 메소드

Perform version check.
public checkVersion ( $versionInfo, $displayInfo = false )
$versionInfo array latest version info
$displayInfo boolean just display info, don't perform check

download() 공개 메소드

Download latest package.
public download ( )

execute() 공개 메소드

Execute the specified command.
public execute ( )

latest() 공개 메소드

Print information about the latest available version.
public latest ( )

log() 공개 메소드

Log install message to stdout.
public log ( $message )
$message string

promptContinue() 공개 메소드

Prompt user for yes/no input (default no).
public promptContinue ( $prompt = "Continue?" )
$prompt string

upgrade() 공개 메소드

Run upgrade script.
public upgrade ( )

usage() 공개 메소드

Print command usage information.
public usage ( )

프로퍼티 상세

$command 공개적으로 프로퍼티

command to execute (check|upgrade|download)
public $command