|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($argv=array()) | |
| execute () | |
| install () | |
| log ($message) | |
| printTitle ($title) | |
| readInput () | |
| readParam ($name, $prompt, $defaultValue=null) | |
| readParamBoolean ($name, $prompt, $default='N') | |
| readParamOptions ($name, $prompt, $options, $defaultValue=null, $allowMultiple=false) | |
| readParams () | |
| usage () | |
Data Fields | |
| $params | |
Data Fields inherited from CommandLineTool | |
| $argv | |
| $scriptName | |
Definition at line 22 of file InstallTool.inc.php.
| InstallTool::__construct | ( | $argv = array() | ) |
Constructor.
| $argv | array command-line arguments |
Reimplemented from CommandLineTool.
Reimplemented in OJSInstallTool.
Definition at line 34 of file InstallTool.inc.php.
References CommandLineTool\$argv.
| InstallTool::execute | ( | ) |
Execute the script.
Definition at line 49 of file InstallTool.inc.php.
References install(), and readParams().
| InstallTool::install | ( | ) |
| InstallTool::log | ( | $message | ) |
Log install message to stdout.
| $message | string |
Definition at line 253 of file InstallTool.inc.php.
| InstallTool::printTitle | ( | $title | ) |
Print input section title.
| $title | string |
Definition at line 140 of file InstallTool.inc.php.
Referenced by readParams().
| InstallTool::readInput | ( | ) |
Read a line of user input.
Definition at line 148 of file InstallTool.inc.php.
Referenced by readParam(), readParamBoolean(), and readParamOptions().
| InstallTool::readParam | ( | $name, | |
| $prompt, | |||
$defaultValue = null |
|||
| ) |
Read a string parameter.
| $name | string |
| $prompt | string |
| $defaultValue | string |
Definition at line 163 of file InstallTool.inc.php.
References readInput().
Referenced by readParams().
| InstallTool::readParamBoolean | ( | $name, | |
| $prompt, | |||
$default = 'N' |
|||
| ) |
Prompt user for yes/no input.
| $name | string |
| $prompt | string |
| $default | string default value, 'Y' or 'N' |
Definition at line 186 of file InstallTool.inc.php.
References readInput().
Referenced by OJSInstallTool\readParams(), and readParams().
| InstallTool::readParamOptions | ( | $name, | |
| $prompt, | |||
| $options, | |||
$defaultValue = null, |
|||
$allowMultiple = false |
|||
| ) |
Read a parameter from a set of options.
| $name | string |
| $prompt | string |
| $options | array |
| $defaultOption | string |
Definition at line 205 of file InstallTool.inc.php.
References readInput().
Referenced by readParams().
| InstallTool::readParams | ( | ) |
Read installation parameters from stdin. FIXME: May want to implement an abstract "CLIForm" class handling input/validation. FIXME: Use readline if available?
Reimplemented in OJSInstallTool.
Definition at line 91 of file InstallTool.inc.php.
References printTitle(), readParam(), readParamBoolean(), and readParamOptions().
Referenced by execute().
| InstallTool::usage | ( | ) |
Print command usage information.
Reimplemented from CommandLineTool.
Definition at line 41 of file InstallTool.inc.php.
| array InstallTool::$params |
installation parameters
Definition at line 28 of file InstallTool.inc.php.