/** * Performs the server side validation. * @since 1.0 * @return bool * true if no error found * @throws HTML_QuickForm_Error */ public function validate() { $error = parent::validate(); $this->validateChainSelectFields(); $hookErrors = array(); CRM_Utils_Hook::validateForm(get_class($this), $this->_submitValues, $this->_submitFiles, $this, $hookErrors); if (!empty($hookErrors)) { $this->_errors += $hookErrors; } return 0 == count($this->_errors); }
function display() { $this->getValidationScript(); return parent::display(); }
function validate() { $error = parent::validate(); require_once 'CRM/Utils/Hook.php'; $hookErrors = CRM_Utils_Hook::validate(get_class($this), $this->_submitValues, $this->_submitFiles, $this); if ($hookErrors !== true && is_array($hookErrors) && !empty($hookErrors)) { $this->_errors += $hookErrors; } return 0 == count($this->_errors); }
function validate() { $error = parent::validate(); $hookErrors = CRM_Utils_Hook::validate(get_class($this), $this->_submitValues, $this->_submitFiles, $this); if (!is_array($hookErrors)) { $hookErrors = array(); } CRM_Utils_Hook::validateForm(get_class($this), $this->_submitValues, $this->_submitFiles, $this, $hookErrors); if (!empty($hookErrors)) { $this->_errors += $hookErrors; } return 0 == count($this->_errors); }
function validate() { if (count($this->_rules) == 0 && count($this->_formRules) == 0) { return true; } else { return parent::validate(); } }
/** * Create new instance of seventh wizard's step * In this constructor name(id) of this page is set to WizardStepSeven */ function __construct() { parent::__construct('WizardStepSeven'); }