execute() public méthode

Perform installation.
public execute ( )
Exemple #1
0
 /**
  * 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();
     }
 }
Exemple #2
0
 /**
  * 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();
     }
 }