PHP Class UpgradeTool, pkp-lib

Inheritance: extends CommandLineTool
显示文件 Open project: pkp/pkp-lib Class Usage Examples

Public Properties

Property Type Description
$command command to execute (check|upgrade|download)

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

check() public method

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

checkVersion() public method

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

download() public method

Download latest package.
public download ( )

execute() public method

Execute the specified command.
public execute ( )

latest() public method

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

log() public method

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

promptContinue() public method

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

upgrade() public method

Run upgrade script.
public upgrade ( )

usage() public method

Print command usage information.
public usage ( )

Property Details

$command public_oe property

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