Exemplo 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'))));
 }
Exemplo 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)))));
 }
Exemplo 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')))));
 }
Exemplo 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'))));
 }