public function validate($data) { parent::validate($data); $step = install_get_step(3); if ($this->isStrictMode($step)) { throw new \RuntimeException(__t('mysql_strict_mode_warning')); } }
/** * Check if a given step has all previous step done. * @param $step * @param $state * @return bool */ function install_can_do($step, $state) { if (!is_numeric($step)) { $step = $this->getNumber(); } $step = (int) $step; // First step can be done anytime. if ($step == 0) { return true; } // There's not step done. can do this further step for ($number = 0; $number < $step; $number++) { $stepObject = install_get_step($number); if ($stepObject->isPending()) { return false; } } return true; }