public function render(HTML_QuickForm2_Renderer $renderer) { return parent::render($renderer); }
protected function renderLanguageSelection() { $form = new Am_Form_Admin(); $form->addElement('select', 'language')->setLabel(___('Language'))->setValue($this->getLanguage())->loadOptions($this->getLanguageOptions()); $renderer = HTML_QuickForm2_Renderer::factory('array'); $form->render($renderer); $form = $renderer->toArray(); $filter = ''; foreach ($form['elements'] as $el) { $filter .= ' ' . $el['label'] . ' ' . $el['html']; } return sprintf("<div class='filter-wrap'><form class='filter' method='get' action='%s'>\n", $this->escape($this->getUrl(null, 'index'))) . $filter . "</form></div>\n"; }