/** * Validate the form * * @param array $dirty reference to unverified $_POST * @return bool */ function formValidate(&$dirty) { if (empty($dirty['action'])) { return false; } $action = filter_var($dirty['action'], FILTER_SANITIZE_STRING); return suxValidate::formValidate($dirty, $this->tpl, $action); }
/** * Validate the form * * @param array $dirty reference to unverified $_POST * @return bool */ function formValidate(&$dirty) { return suxValidate::formValidate($dirty, $this->tpl); }