PMA\libraries\DisplayResults::_getColumnAtRightSide PHP 메소드

_getColumnAtRightSide() 개인적인 메소드

Prepare column to show at right side - check boxes or empty column
또한 보기: _getTableHeaders()
private _getColumnAtRightSide ( &$displayParts, string $full_or_partial_text_link, string $colspan ) : string
$full_or_partial_text_link string full/partial link or text button
$colspan string column span of table header
리턴 string html content
    private function _getColumnAtRightSide(&$displayParts, $full_or_partial_text_link, $colspan)
    {
        $right_column_html = '';
        $display_params = $this->__get('display_params');
        // Displays the needed checkboxes at the right
        // column of the result table header if possible and required...
        if (($GLOBALS['cfg']['RowActionLinks'] == self::POSITION_RIGHT || $GLOBALS['cfg']['RowActionLinks'] == self::POSITION_BOTH) && ($displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE || $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE) && $displayParts['text_btn'] == '1') {
            $display_params['emptyafter'] = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? 4 : 1;
            $right_column_html .= "\n" . '<th class="column_action print_ignore" ' . $colspan . '>' . $full_or_partial_text_link . '</th>';
        } elseif (($GLOBALS['cfg']['RowActionLinks'] == self::POSITION_LEFT || $GLOBALS['cfg']['RowActionLinks'] == self::POSITION_BOTH) && ($displayParts['edit_lnk'] == self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] == self::NO_EDIT_OR_DELETE) && (!isset($GLOBALS['is_header_sent']) || !$GLOBALS['is_header_sent'])) {
            //     ... elseif no button, displays empty columns if required
            // (unless coming from Browse mode print view)
            $display_params['emptyafter'] = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? 4 : 1;
            $right_column_html .= "\n" . '<td class="print_ignore" ' . $colspan . '></td>';
        }
        $this->__set('display_params', $display_params);
        return $right_column_html;
    }
DisplayResults