Beispiel #1
0
 /**
  * Validate value
  *
  * @param array $data
  * @return boolean
  */
 public function validate(array &$data)
 {
     if ($this->min !== null) {
         $this->validator->setMin($this->min);
     }
     if ($this->max !== null) {
         $this->validator->setMax($this->max);
     }
     $this->validator->setFormat($this->getFormat());
     $this->validator->setFormatRules($this->getFormatRules());
     return parent::validate($data);
 }
Beispiel #2
0
 /**
  * Validate value
  *
  * @param array $data
  * @return boolean
  */
 public function validate(array &$data)
 {
     return parent::validate($data);
 }
Beispiel #3
0
 /**
  * Validate value
  *
  * @param array $data
  * @return boolean
  */
 public function validate(array &$data)
 {
     if ($this->max !== null) {
         $this->validator->setMax($this->max);
     }
     if ($this->min !== null) {
         $this->validator->setMin($this->min);
     }
     return parent::validate($data);
 }
Beispiel #4
0
 /**
  * Validate value
  *
  * @param array $data
  * @return boolean
  */
 public function validate(array &$data)
 {
     $this->validator->setValue($this->true_value, $this->false_value);
     $this->validator->strict($this->strict);
     return parent::validate($data);
 }