Ejemplo n.º 1
0
 /**
  * Rules for the post_datetime model
  *
  * @return array Rules
  */
 public function rules()
 {
     return Arr::merge(parent::rules(), array('value' => array(array('date'))));
 }
Ejemplo n.º 2
0
 /**
  * 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)))));
 }
Ejemplo n.º 3
0
 /**
  * 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')))));
 }
Ejemplo n.º 4
0
 /**
  * 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'))));
 }