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
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('compare_value', $this->compare_value);
     return $template;
 }
Example #3
0
 protected function preRender($form_name)
 {
     $template = parent::preRender($form_name);
     $template->set('options', $this->options);
     return $template;
 }