isValid() public method

Returns whether the field is valid.
public isValid ( ) : boolean
return boolean
Beispiel #1
0
 /**
  * Returns whether the field is valid.
  *
  * @return Boolean
  */
 public function isValid()
 {
     if (!parent::isValid()) {
         return false;
     }
     foreach ($this->fields as $field) {
         if (!$field->isValid()) {
             return false;
         }
     }
     return true;
 }