/** * Validates job description * * @return boolean */ protected function _validateDescription() { $validator = new Zend_Validate_StringLength(2); if ($validator->isValid($this->category->getDescription())) { return true; } $msg = Sanmax_MessageStack::getInstance('SxCms_Job_Category'); $msg->addMessage('description', $validator->getMessages()); return false; }