initData() публичный Метод

Initialize form data.
public initData ( )
Пример #1
0
 /**
  * If no context is selected, list all.
  * Otherwise, display the index page for the selected context.
  * @param $args array
  * @param $request PKPRequest
  */
 function index($args, $request)
 {
     // Make sure errors are displayed to the browser during install.
     @ini_set('display_errors', true);
     $this->validate($request);
     $this->setupTemplate($request);
     if (($setLocale = $request->getUserVar('setLocale')) != null && AppLocale::isLocaleValid($setLocale)) {
         $request->setCookieVar('currentLocale', $setLocale);
     }
     $installForm = new InstallForm($request);
     $installForm->initData();
     $installForm->display();
 }
Пример #2
0
 /**
  * If no context is selected, list all.
  * Otherwise, display the index page for the selected context.
  */
 function index()
 {
     // Make sure errors are displayed to the browser during install.
     @ini_set('display_errors', true);
     $this->validate();
     $this->setupTemplate();
     if (($setLocale = PKPRequest::getUserVar('setLocale')) != null && AppLocale::isLocaleValid($setLocale)) {
         Request::setCookieVar('currentLocale', $setLocale);
     }
     if (checkPhpVersion('5.0.0')) {
         // WARNING: This form needs $this in constructor
         $installForm = new InstallForm();
     } else {
         $installForm =& new InstallForm();
     }
     $installForm->initData();
     $installForm->display();
 }