예제 #1
0
 public function isValid($value, $context = null)
 {
     $this->clearValidators();
     return parent::isValid($value, $context = null);
 }
예제 #2
0
 /**
  *
  */
 public function isValid($value, $context = null)
 {
     $valid = parent::isValid($value, $context);
     if ($valid) {
         // All fields are hidden when correct
         $this->removeDecorator('HtmlTag');
         $this->removeDecorator('row');
         $this->removeDecorator('label');
     }
     return $valid;
 }