_errorMessage = $errorMsg; $this->_element = $element; $this->_runat = $runat; $this->_options = $serverValidatorOptions; $this->_validator = $serverValidator; if ($this->_element) { $this->_element->addValidator($this); } } public function getName() { return($this->_name); } public function setName($name) { $this->_name = $name; } public function getErrorMessage() { return($this->_errorMessage); } public function getElement() { return($this->_element); } public function getRunat() { return($this->_runat); } public function performValidation(ZFormElement $target) { if ($this->_validator && ($this->_runat & self::SERVER) != 0) { $validator = new ZValidator(); if ($this->_options) { $args = array_pad($this->_options, (count($this->_options) * -1) -1, $target->getValue()); return(call_user_func_array(array($validator, $this->_validator), $args)); } else { return($validator->{$this->_validator}($target->getValue())); } } return(false); } public function emitClientValidator(ZFormElement $target) { // VOID implementation } } ?>