2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
13 * Represents a container for table nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Table_Container
extends Node
20 * Initialises the class
22 * @return Node_Table_Container
24 public function __construct()
26 parent
::__construct(__('Tables'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('b_browse.png', '');
29 'text' => 'db_structure.php?server=' . $GLOBALS['server']
30 . '&db=%1$s&token=' . $GLOBALS['token'],
31 'icon' => 'db_structure.php?server=' . $GLOBALS['server']
32 . '&db=%1$s&token=' . $GLOBALS['token'],
34 if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
35 $this->separator
= $GLOBALS['cfg']['NavigationTreeTableSeparator'];
36 $this->separator_depth
= (int)($GLOBALS['cfg']['NavigationTreeTableLevel']);
38 $this->real_name
= 'tables';
40 $new = PMA_NodeFactory
::getInstance('Node', _pgettext('Create new table', 'New'));
42 $new->icon
= PMA_Util
::getImage('b_table_add.png', '');
44 'text' => 'tbl_create.php?server=' . $GLOBALS['server']
45 . '&db=%2$s&token=' . $GLOBALS['token'],
46 'icon' => 'tbl_create.php?server=' . $GLOBALS['server']
47 . '&db=%2$s&token=' . $GLOBALS['token'],
49 $new->classes
= 'new_table italics';
50 $this->addChild($new);