Open Monograph Press
3.3.0
install.php
1
<?php
2
18
require(dirname(__FILE__) .
'/bootstrap.inc.php'
);
19
20
import
(
'lib.pkp.classes.cliTool.InstallTool'
);
21
22
class
OMPInstallTool
extends
InstallTool
{
27
function
__construct
(
$argv
= array()) {
28
parent::__construct(
$argv
);
29
}
30
36
function
readParams
() {
37
AppLocale::requireComponents
(LOCALE_COMPONENT_PKP_INSTALLER, LOCALE_COMPONENT_APP_COMMON, LOCALE_COMPONENT_PKP_USER);
38
printf(
"%s\n"
, __(
'installer.appInstallation'
));
39
40
parent::readParams();
41
42
$this->
readParamBoolean
(
'install'
,
'installer.installOMP'
);
43
44
return
$this->params[
'install'
];
45
}
46
47
}
48
49
$tool
=
new
OMPInstallTool
(isset($argv) ? $argv : array());
50
$tool
->execute();
51
52
AppLocale\requireComponents
static requireComponents()
Definition:
env1/MockAppLocale.inc.php:56
$tool
$tool
Definition:
mergeCoverageReportTool.php:120
InstallTool\readParamBoolean
readParamBoolean($name, $prompt, $default='N')
Definition:
InstallTool.inc.php:186
OMPInstallTool\readParams
readParams()
Definition:
install.php:36
OMPInstallTool
Definition:
install.php:22
InstallTool
Definition:
InstallTool.inc.php:22
OMPInstallTool\__construct
__construct($argv=array())
Definition:
install.php:27
CommandLineTool\$argv
$argv
Definition:
CliTool.inc.php:53
tools
install.php
Generated on Fri Aug 28 2020 14:52:45 for Open Monograph Press by
1.8.17