blob: 0efa9fc116954d1cde1368a347dd32d1eca77933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Functionality for the navigation tree
*
* @package PhpMyAdmin-Navigation
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/**
* Represents a container for table nodes in the navigation tree
*
* @package PhpMyAdmin-Navigation
*/
class Node_Table_Container extends Node
{
/**
* Initialises the class
*
* @return Node_Table_Container
*/
public function __construct()
{
parent::__construct(__('Tables'), Node::CONTAINER);
$this->icon = PMA_Util::getImage('b_browse.png', '');
$this->links = array(
'text' => 'db_structure.php?server=' . $GLOBALS['server']
. '&db=%1$s&token=' . $GLOBALS['token'],
'icon' => 'db_structure.php?server=' . $GLOBALS['server']
. '&db=%1$s&token=' . $GLOBALS['token'],
);
if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
$this->separator = $GLOBALS['cfg']['NavigationTreeTableSeparator'];
$this->separator_depth = (int)($GLOBALS['cfg']['NavigationTreeTableLevel']);
}
$this->real_name = 'tables';
$this->classes = 'tableContainer';
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new table', 'New'));
$new->isNew = true;
$new->icon = PMA_Util::getImage('b_table_add.png', '');
$new->links = array(
'text' => 'tbl_create.php?server=' . $GLOBALS['server']
. '&db=%2$s&token=' . $GLOBALS['token'],
'icon' => 'tbl_create.php?server=' . $GLOBALS['server']
. '&db=%2$s&token=' . $GLOBALS['token'],
);
$new->classes = 'new_table italics';
$this->addChild($new);
}
}
?>
|