public function addInput($type, $name, $value = NULL, $label = NULL, $class = NULL, $language = NULL) { // Adds input to form $input = new HTMLInput($type, $name, $value, $language); if ($label) { $input->addLabel($label); } if ($class) { $input->addClass($class); } $this->inputs[] = $input; return $input; }