/** * 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)); }
/** * 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); }
/** * 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); }