PMA\libraries\DisplayResults::_getDraggableClassForSortableColumns PHP Method

_getDraggableClassForSortableColumns() private method

Prepare columns to draggable effect for sortable columns
See also: _getTableHeaders()
private _getDraggableClassForSortableColumns ( boolean $col_visib, string $col_visib_j, array $fields_meta, string $order_link, string $comments ) : string
$col_visib boolean the column is visible (false) array the column is not visible (string array)
$col_visib_j string element of $col_visib array
$fields_meta array set of field properties
$order_link string the order link
$comments string the comment for the column
return string $draggable_html html content
    private function _getDraggableClassForSortableColumns($col_visib, $col_visib_j, $fields_meta, $order_link, $comments)
    {
        $draggable_html = '<th';
        $th_class = array();
        $th_class[] = 'draggable';
        $this->_getClassForNumericColumnType($fields_meta, $th_class);
        if ($col_visib && !$col_visib_j) {
            $th_class[] = 'hide';
        }
        $th_class[] = 'column_heading';
        if ($GLOBALS['cfg']['BrowsePointerEnable'] == true) {
            $th_class[] = 'pointer';
        }
        if ($GLOBALS['cfg']['BrowseMarkerEnable'] == true) {
            $th_class[] = 'marker';
        }
        $draggable_html .= ' class="' . implode(' ', $th_class) . '"';
        $draggable_html .= ' data-column="' . htmlspecialchars($fields_meta->name) . '">' . $order_link . $comments . '</th>';
        return $draggable_html;
    }
DisplayResults