Esempio n. 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));
 }
Esempio n. 2
0
File: url.php Progetto: netbiel/core
 /**
  * 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);
 }
Esempio n. 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);
 }