PHP Class UpgradeTool, pkp-lib

Inheritance: extends CommandLineTool
Afficher le fichier Open project: pkp/pkp-lib Class Usage Examples

Méthodes publiques

Свойство Type Description
$command command to execute (check|upgrade|download)

Méthodes publiques

Méthode 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 méthode

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

check() public méthode

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

checkVersion() public méthode

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

download() public méthode

Download latest package.
public download ( )

execute() public méthode

Execute the specified command.
public execute ( )

latest() public méthode

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

log() public méthode

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

promptContinue() public méthode

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

upgrade() public méthode

Run upgrade script.
public upgrade ( )

usage() public méthode

Print command usage information.
public usage ( )

Property Details

$command public_oe property

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