PMA\libraries\DisplayResults::_getShowAllCheckboxForTableNavigation PHP Method

_getShowAllCheckboxForTableNavigation() private method

Prepare Show All checkbox for table navigation
See also: _getTableNavigation()
private _getShowAllCheckboxForTableNavigation ( boolean $showing_all, string $html_sql_query ) : string
$showing_all boolean whether all rows are shown currently
$html_sql_query string the sql encoded by html special characters
return string html content
    private function _getShowAllCheckboxForTableNavigation($showing_all, $html_sql_query)
    {
        return "\n" . '<td>' . '<form action="sql.php" method="post">' . URL::getHiddenInputs($this->__get('db'), $this->__get('table')) . '<input type="hidden" name="sql_query" value="' . $html_sql_query . '" />' . '<input type="hidden" name="pos" value="0" />' . '<input type="hidden" name="is_browse_distinct" value="' . $this->__get('is_browse_distinct') . '" />' . '<input type="hidden" name="session_max_rows" value="' . (!$showing_all ? 'all' : intval($GLOBALS['cfg']['MaxRows'])) . '" />' . '<input type="hidden" name="goto" value="' . $this->__get('goto') . '" />' . '<input type="checkbox" name="navig"' . ' id="showAll_' . $this->__get('unique_id') . '" class="showAllRows"' . (!$showing_all ? '' : ' checked="checked"') . ' value="all" />' . '<label for="showAll_' . $this->__get('unique_id') . '">' . __('Show all') . '</label>' . '</form>' . '</td>';
    }
DisplayResults