PMA\libraries\navigation\NavigationTree::_controls PHP Method

_controls() private method

Creates the code for displaying the controls at the top of the navigation tree
private _controls ( ) : string
return string HTML code for the controls
    private function _controls()
    {
        // always iconic
        $showIcon = true;
        $showText = false;
        $retval = '<!-- CONTROLS START -->';
        $retval .= '<li id="navigation_controls_outer">';
        $retval .= '<div id="navigation_controls">';
        $retval .= Util::getNavigationLink('#', $showText, __('Collapse all'), $showIcon, 's_collapseall.png', 'pma_navigation_collapse');
        $syncImage = 's_unlink.png';
        $title = __('Link with main panel');
        if ($GLOBALS['cfg']['NavigationLinkWithMainPanel']) {
            $syncImage = 's_link.png';
            $title = __('Unlink from main panel');
        }
        $retval .= Util::getNavigationLink('#', $showText, $title, $showIcon, $syncImage, 'pma_navigation_sync');
        $retval .= '</div>';
        $retval .= '</li>';
        $retval .= '<!-- CONTROLS ENDS -->';
        return $retval;
    }