PHP Класс UpgradeTool, pkp-lib

Наследование: extends CommandLineTool
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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