Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Table_Container.class.php
blob0c65f76c6a0e9c1a89a3b39fbe4787844dc2e038
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 require_once 'libraries/navigation/Nodes/Node_DatabaseChild_Container.class.php';
14 /**
15 * Represents a container for table nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Table_Container extends Node_DatabaseChild_Container
21 /**
22 * Initialises the class
24 public function __construct()
26 parent::__construct(__('Tables'), Node::CONTAINER);
27 $this->icon = PMA_Util::getImage('b_browse.png', __('Tables'));
28 $this->links = array(
29 'text' => 'db_structure.php?server=' . $GLOBALS['server']
30 . '&amp;db=%1$s&amp;tbl_type=table'
31 . '&amp;token=' . $_SESSION[' PMA_token '],
32 'icon' => 'db_structure.php?server=' . $GLOBALS['server']
33 . '&amp;db=%1$s&amp;tbl_type=table'
34 . '&amp;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);
41 $new->isNew = true;
42 $new->icon = PMA_Util::getImage('b_table_add.png', $new_label);
43 $new->links = array(
44 'text' => 'tbl_create.php?server=' . $GLOBALS['server']
45 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '],
46 'icon' => 'tbl_create.php?server=' . $GLOBALS['server']
47 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '],
49 $new->classes = 'new_table italics';
50 $this->addChild($new);