Beispiel #1
0
 /**
  * Adds a date validation rule if it doesn't already exist.
  *
  * @param   string  $model
  * @param   string  $column
  * @return  void
  **/
 public function initialize($model, $column)
 {
     parent::initialize($model, $column);
     $this->rules += array('time' => null, 'max_length' => array(5));
 }
Beispiel #2
0
 /**
  * Adds an URL validation rule if it doesn't already exist.
  *
  * @param   string  $model
  * @param   string  $column
  * @return  void
  **/
 public function initialize($model, $column)
 {
     parent::initialize($model, $column);
     $this->rules += array('url' => null);
 }
Beispiel #3
0
 /**
  * Adds an email validation rule if it doesn't already exist.
  *
  * @param   string  $model
  * @param   string  $column
  * @return  void
  **/
 public function initialize($model, $column)
 {
     parent::initialize($model, $column);
     $this->rules += array('email' => NULL);
 }