protected function _initValidator()
 {
     parent::_initValidator();
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'message'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'sender'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/email_rule', 'sender_email'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/email_rule', 'comment_author_email'));
 }
 protected function _initValidator()
 {
     parent::_initValidator();
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'title'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'annotation'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'news_date'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/locale_date_rule', 'news_date'));
 }
 protected function _initValidator()
 {
     parent::_initValidator();
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'question'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'answer'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/email_rule', 'question_author_email'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/email_rule', 'answer_author_email'));
 }
 protected function _initValidator()
 {
     parent::_initValidator();
     $request = Limb::toolkit()->getRequest();
     $datasource = Limb::toolkit()->getDatasource('RequestedObjectDatasource');
     $datasource->setRequest($request);
     if ($object_data = $datasource->fetch()) {
         $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/unique_user_rule', 'identifier', $object_data['identifier']));
         $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/unique_user_email_rule', 'email', $object_data['email']));
     }
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'name'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'email'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/email_rule', 'email'));
 }
 protected function _initValidator()
 {
     parent::_initValidator();
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'title'));
     $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'content'));
 }
 function _initValidator()
 {
     parent::_initValidator();
     $this->validator->addRule(array(LIMB_DIR . '/core/validators/rules/required_rule', 'title'));
 }