Example #1
0
 public function addField(MfField $field)
 {
     if (isset($this->names[$field->name])) {
         throw new Exception($this->getName() . ': Duplicate field ID: ' . $field->name);
     }
     $this->names[$field->name] =& $field;
     $this->fields[] =& $field->setParent($this)->fetchValue($_POST);
     return $this;
 }