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