示例#1
0
 public function validate($data)
 {
     parent::validate($data);
     $step = install_get_step(3);
     if ($this->isStrictMode($step)) {
         throw new \RuntimeException(__t('mysql_strict_mode_warning'));
     }
 }
示例#2
0
 public function run($formData, $step, &$state)
 {
     $response = parent::run($formData, $step, $state);
     $_SESSION['install_locale'] = $response->getData('lang_code');
     return $response;
 }