Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Index_Container.class.php
blob8cb8228a053ef6af1bab9da8f69847ca3f141b79
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 /**
13 * Represents a container for index nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Index_Container extends Node
19 /**
20 * Initialises the class
22 public function __construct()
24 parent::__construct(__('Indexes'), Node::CONTAINER);
25 $this->icon = PMA_Util::getImage('b_index.png', __('Indexes'));
26 $this->links = array(
27 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
28 . '&amp;db=%2$s&amp;table=%1$s'
29 . '&amp;token=' . $_SESSION[' PMA_token '],
30 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
31 . '&amp;db=%2$s&amp;table=%1$s'
32 . '&amp;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);
38 $new->isNew = true;
39 $new->icon = PMA_Util::getImage('b_index_add.png', $new_label);
40 $new->links = array(
41 'text' => 'tbl_indexes.php?server=' . $GLOBALS['server']
42 . '&amp;create_index=1&amp;added_fields=2'
43 . '&amp;db=%3$s&amp;table=%2$s&amp;token='
44 . $_SESSION[' PMA_token '],
45 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server']
46 . '&amp;create_index=1&amp;added_fields=2'
47 . '&amp;db=%3$s&amp;table=%2$s&amp;token='
48 . $_SESSION[' PMA_token '],
50 $new->classes = 'new_index italics';
51 $this->addChild($new);