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