/** * Rules for the post_datetime model * * @return array Rules */ public function rules() { return Arr::merge(parent::rules(), array('value' => array(array('date')))); }
/** * Rules for the post_varchar model * * @return array Rules */ public function rules() { return Arr::merge(parent::rules(), array('value' => array(array('max_length', array(':value', 255))))); }
/** * Rules for the post_int model * * @return array Rules */ public function rules() { return Arr::merge(parent::rules(), array('value' => array(array(array($this, 'validate_wkt'), array(':value'))))); }
/** * Rules for the post_decimal model * * @return array Rules */ public function rules() { return Arr::merge(parent::rules(), array('value' => array(array('not_empty'), array('decimal')))); }