Example #1
0
 protected function preRender($form_name)
 {
     if ($this->max_length !== null) {
         $this->setAttribute('maxlength', $this->max_length);
     }
     $template = parent::preRender($form_name);
     $template->set('type', $this->type);
     return $template;
 }
Example #2
0
File: Form.php Project: Kekos/booya
 public function appendField(Field $field)
 {
     $name = $field->getName();
     $this->fields[$name] = $field;
 }
Example #3
0
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('compare_value', $this->compare_value);
     return $template;
 }
Example #4
0
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('options', $this->options);
     return $template;
 }