/** * Execute installer. * @param $args array * @param $request PKPRequest */ function install($args, $request) { $this->validate($request); $this->setupTemplate($request); $installForm = new InstallForm($request); $installForm->readInputData(); if ($installForm->validate()) { $installForm->execute(); } else { $installForm->display(); } }
/** * Execute installer. */ function install() { $this->validate(); $this->setupTemplate(); if (checkPhpVersion('5.0.0')) { // WARNING: This form needs $this in constructor $installForm = new InstallForm(); } else { $installForm =& new InstallForm(); } $installForm->readInputData(); if ($installForm->validate()) { $installForm->execute(); } else { $installForm->display(); } }