private function _getFieldVisibilityParams(&$displayParts, $full_or_partial_text_link)
{
$button_html = '';
$display_params = $this->__get('display_params');
// 1. Displays the full/partial text button (part 1)...
$button_html .= '<thead><tr>' . "\n";
$colspan = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? ' colspan="4"' : '';
// ... before the result table
if ($displayParts['edit_lnk'] == self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] == self::NO_EDIT_OR_DELETE && $displayParts['text_btn'] == '1') {
$display_params['emptypre'] = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? 4 : 0;
} elseif (($GLOBALS['cfg']['RowActionLinks'] == self::POSITION_LEFT || $GLOBALS['cfg']['RowActionLinks'] == self::POSITION_BOTH) && $displayParts['text_btn'] == '1') {
// ... at the left column of the result table header if possible
// and required
$display_params['emptypre'] = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? 4 : 0;
$button_html .= '<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)) {
// ... elseif no button, displays empty(ies) col(s) if required
$display_params['emptypre'] = $displayParts['edit_lnk'] != self::NO_EDIT_OR_DELETE && $displayParts['del_lnk'] != self::NO_EDIT_OR_DELETE ? 4 : 0;
$button_html .= '<td ' . $colspan . '></td>';
} elseif ($GLOBALS['cfg']['RowActionLinks'] == self::POSITION_NONE) {
// ... elseif display an empty column if the actions links are
// disabled to match the rest of the table
$button_html .= '<th class="column_action"></th>';
}
$this->__set('display_params', $display_params);
return array($colspan, $button_html);
}