示例#1
0
文件: HTMLForm.php 项目: uhtoff/eCRF
 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;
 }