PMA\libraries\DisplayResults::_getDataForResettingColumnOrder PHP Method

_getDataForResettingColumnOrder() private method

Prepare data for column restoring and show/hide
See also: _getTableHeaders()
private _getDataForResettingColumnOrder ( ) : string
return string $data_html html content
    private function _getDataForResettingColumnOrder()
    {
        $data_html = '';
        // generate the column order, if it is set
        $pmatable = new Table($this->__get('table'), $this->__get('db'));
        $col_order = $pmatable->getUiProp(Table::PROP_COLUMN_ORDER);
        if ($col_order) {
            $data_html .= '<input class="col_order" type="hidden" value="' . implode(',', $col_order) . '" />';
        }
        $col_visib = $pmatable->getUiProp(Table::PROP_COLUMN_VISIB);
        if ($col_visib) {
            $data_html .= '<input class="col_visib" type="hidden" value="' . implode(',', $col_visib) . '" />';
        }
        // generate table create time
        $table = new Table($this->__get('table'), $this->__get('db'));
        if (!$table->isView()) {
            $data_html .= '<input class="table_create_time" type="hidden" value="' . $GLOBALS['dbi']->getTable($this->__get('db'), $this->__get('table'))->getStatusInfo('Create_time') . '" />';
        }
        return $data_html;
    }
DisplayResults