diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /hugo/libraries/navigation/Nodes/Node_Index_Container.class.php | |
Diffstat (limited to 'hugo/libraries/navigation/Nodes/Node_Index_Container.class.php')
| -rw-r--r-- | hugo/libraries/navigation/Nodes/Node_Index_Container.class.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/hugo/libraries/navigation/Nodes/Node_Index_Container.class.php b/hugo/libraries/navigation/Nodes/Node_Index_Container.class.php new file mode 100644 index 0000000..732dfdd --- /dev/null +++ b/hugo/libraries/navigation/Nodes/Node_Index_Container.class.php @@ -0,0 +1,54 @@ +<?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 index nodes in the navigation tree + * + * @package PhpMyAdmin-Navigation + */ +class Node_Index_Container extends Node +{ + /** + * Initialises the class + * + * @return Node_Index_Container + */ + public function __construct() + { + parent::__construct(__('Indexes'), Node::CONTAINER); + $this->icon = PMA_Util::getImage('b_index.png', ''); + $this->links = array( + 'text' => 'tbl_structure.php?server=' . $GLOBALS['server'] + . '&db=%2$s&table=%1$s' + . '&token=' . $GLOBALS['token'], + 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] + . '&db=%2$s&table=%1$s' + . '&token=' . $GLOBALS['token'], + ); + $this->real_name = 'indexes'; + + $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new index', 'New')); + $new->isNew = true; + $new->icon = PMA_Util::getImage('b_index_add.png', ''); + $new->links = array( + 'text' => 'tbl_indexes.php?server=' . $GLOBALS['server'] + . '&create_index=1&added_fields=2' + . '&db=%3$s&table=%2$s&token=' . $GLOBALS['token'], + 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server'] + . '&create_index=1&added_fields=2' + . '&db=%3$s&table=%2$s&token=' . $GLOBALS['token'], + ); + $new->classes = 'new_index italics'; + $this->addChild($new); + } +} + +?> |
