Ejemplo n.º 1
0
 /**
  * Validates the data contained in the given form control using the validator
  * specified by the given form control.
  *
  * @param FormControl $control
  *
  * @return boolean
  */
 public function validate($control)
 {
     if (preg_match($this->getRegexpForValidator($control->getValidator()), $control->getData())) {
         return TRUE;
     }
     return FALSE;
 }