Exemple #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;
 }
Exemple #2
0
 public function appendField(Field $field)
 {
     $name = $field->getName();
     $this->fields[$name] = $field;
 }
Exemple #3
0
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('compare_value', $this->compare_value);
     return $template;
 }
Exemple #4
0
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('options', $this->options);
     return $template;
 }