public function append($control) { if (!$control instanceof FormControl) { $control = FormControl::from_args(func_get_args()); } $control->set_container($this); $this->controls[$control->name] = $control; return $control; }