Exemple #1
0
 public function validateValue($value)
 {
     if (parent::validateValue($value)) {
         if ($this->format !== null) {
             // RETURN 'FORMAT'  (lang FIELD_INVALID_FORMAT)
             // or even return array('FORMAT')
             return (bool) preg_match($this->format, $value);
         }
         return true;
     }
     return false;
 }
Exemple #2
0
 public function validateValue($value, $row, Result $result)
 {
     return $this->valueField->validateValue($value, $row, $result);
 }
Exemple #3
0
 public function validateValue($value)
 {
     return $this->valueField->validateValue($value);
 }