readInputData() public method

Assign form data to user-submitted data.
public readInputData ( )
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }