• Main Page
  • Modules
  • Classes
  • Files
  • File List

tools/install.php

00001 <?php
00002 
00017 require(dirname(__FILE__) . '/bootstrap.inc.php');
00018 
00019 import('lib.pkp.classes.cliTool.InstallTool');
00020 
00021 class OMPInstallTool extends InstallTool {
00026    function OMPInstallTool($argv = array()) {
00027       parent::InstallTool($argv);
00028    }
00029 
00035    function readParams() {
00036       AppLocale::requireComponents(LOCALE_COMPONENT_PKP_INSTALLER, LOCALE_COMPONENT_APPLICATION_COMMON, LOCALE_COMPONENT_PKP_USER);
00037       printf("%s\n", __('installer.ompInstallation'));
00038 
00039       parent::readParams();
00040 
00041       $this->readParamBoolean('install', 'installer.installOMP');
00042 
00043       return $this->params['install'];
00044    }
00045 
00046 }
00047 
00048 $tool = new OMPInstallTool(isset($argv) ? $argv : array());
00049 $tool->execute();
00050 
00051 ?>

Generated on Mon Sep 17 2012 13:58:56 for Open Monograph Press by  doxygen 1.7.1