예제 #1
0
 /**
  * Return an array of errors that occurred on any of the children during processInput()
  *
  * Should only be called after processInput()
  *
  * @return array
  *
  */
 public function getErrors($clear = false)
 {
     $errors = parent::getErrors($clear);
     foreach ($this->children as $key => $child) {
         foreach ($child->getErrors($clear) as $e) {
             $errors[] = $child->attr('name') . ": {$e}";
         }
     }
     return $errors;
 }