private function _validateYear() { $validators = array(); $greaterThan = new Zend_Validate_GreaterThan('0000'); $greaterThan->setMessage($this->translate('publish_validation_error_year_greaterthan'), Zend_Validate_GreaterThan::NOT_GREATER); $validators[] = $greaterThan; $validInt = new Zend_Validate_Int(); $messages = array(Zend_Validate_Int::INVALID => $this->translate('publish_validation_error_year_intinvalid'), Zend_Validate_Int::NOT_INT => $this->translate('publish_validation_error_year_notint')); $validInt->setMessages($messages); $validators[] = $validInt; return $validators; }