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 index nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Index_Container
extends Node
20 * Initialises the class
22 * @return Node_Index_Container
24 public function __construct()
26 parent
::__construct(__('Indexes'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('b_index.png', '');
29 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
30 . '&db=%2$s&table=%1$s'
31 . '&token=' . $GLOBALS['token'],
32 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
33 . '&db=%2$s&table=%1$s'
34 . '&token=' . $GLOBALS['token'],
36 $this->real_name
= 'indexes';
38 $new = PMA_NodeFactory
::getInstance('Node', _pgettext('Create new index', 'New'));
40 $new->icon
= PMA_Util
::getImage('b_index_add.png', '');
42 'text' => 'tbl_indexes.php?server=' . $GLOBALS['server']
43 . '&create_index=1&added_fields=2'
44 . '&db=%3$s&table=%2$s&token=' . $GLOBALS['token'],
45 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server']
46 . '&create_index=1&added_fields=2'
47 . '&db=%3$s&table=%2$s&token=' . $GLOBALS['token'],
49 $new->classes
= 'new_index italics';
50 $this->addChild($new);