Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Table_Container.class.php
blob3d3ef146d17cb37809da7d326a5e19d2b6f8db38
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Represents a container for table nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Table_Container extends Node
19 /**
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', '');
28 $this->links = array(
29 'text' => 'db_structure.php?server=' . $GLOBALS['server']
30 . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'],
31 'icon' => 'db_structure.php?server=' . $GLOBALS['server']
32 . '&amp;db=%1$s&amp;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'));
41 $new->isNew = true;
42 $new->icon = PMA_Util::getImage('b_table_add.png', '');
43 $new->links = array(
44 'text' => 'tbl_create.php?server=' . $GLOBALS['server']
45 . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'],
46 'icon' => 'tbl_create.php?server=' . $GLOBALS['server']
47 . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'],
49 $new->classes = 'new_table italics';
50 $this->addChild($new);