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 public function __construct()
24 parent
::__construct(__('Indexes'), Node
::CONTAINER
);
25 $this->icon
= PMA_Util
::getImage('b_index.png', __('Indexes'));
27 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
28 . '&db=%2$s&table=%1$s'
29 . '&token=' . $_SESSION[' PMA_token '],
30 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
31 . '&db=%2$s&table=%1$s'
32 . '&token=' . $_SESSION[' PMA_token '],
34 $this->real_name
= 'indexes';
36 $new_label = _pgettext('Create new index', 'New');
37 $new = PMA_NodeFactory
::getInstance('Node', $new_label);
39 $new->icon
= PMA_Util
::getImage('b_index_add.png', $new_label);
41 'text' => 'tbl_indexes.php?server=' . $GLOBALS['server']
42 . '&create_index=1&added_fields=2'
43 . '&db=%3$s&table=%2$s&token='
44 . $_SESSION[' PMA_token '],
45 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server']
46 . '&create_index=1&added_fields=2'
47 . '&db=%3$s&table=%2$s&token='
48 . $_SESSION[' PMA_token '],
50 $new->classes
= 'new_index italics';
51 $this->addChild($new);