FOF30\Form\Header\Searchable::getButtons PHP Méthode

getButtons() protected méthode

Get the buttons HTML code
protected getButtons ( ) : string
Résultat string The HTML
    protected function getButtons()
    {
        $buttonclass = $this->element['buttonclass'] ? (string) $this->element['buttonclass'] : 'btn hasTip hasTooltip';
        $buttonsState = strtolower($this->element['buttons']);
        $show_buttons = !in_array($buttonsState, array('no', 'false', '0'));
        if (!$show_buttons) {
            return '';
        }
        $html = '';
        $html .= '<button class="' . $buttonclass . '" onclick="this.form.submit();" title="' . JText::_('JSEARCH_FILTER') . '" >' . "\n";
        $html .= '<i class="icon-search"></i>';
        $html .= '</button>' . "\n";
        $html .= '<button class="' . $buttonclass . '" onclick="document.adminForm.' . $this->id . '.value=\'\';this.form.submit();" title="' . JText::_('JSEARCH_RESET') . '">' . "\n";
        $html .= '<i class="icon-remove"></i>';
        $html .= '</button>' . "\n";
        return $html;
    }