protected function _registerValidationRules($validator, $dataspace) { parent::_registerValidationRules($validator, $dataspace); $validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'title')); $validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'author')); $validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'article_content')); }
protected function _registerValidationRules($validator, $dataspace) { parent::_registerValidationRules($validator, $dataspace); $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'start_date')); $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'finish_date')); $this->validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'restriction')); }
function _registerValidationRules(&$validator, &$dataspace) { parent::_registerValidationRules($validator, $dataspace); $this->validator->addRule(array(LIMB_DIR . '/core/validators/rules/required_rule', 'title')); $this->validator->addRule(array(LIMB_DIR . '/core/validators/rules/required_rule', 'url')); }
protected function _registerValidationRules($validator, $dataspace) { parent::_registerValidationRules($validator, $dataspace); $validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'annotation')); $validator->addRule(array(LIMB_DIR . '/class/validators/rules/required_rule', 'object_content')); }