summaryrefslogtreecommitdiff
path: root/hugo/libraries/navigation/Nodes/Node_Index_Container.class.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
committerTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
commitb62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch)
tree86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /hugo/libraries/navigation/Nodes/Node_Index_Container.class.php
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'hugo/libraries/navigation/Nodes/Node_Index_Container.class.php')
-rw-r--r--hugo/libraries/navigation/Nodes/Node_Index_Container.class.php54
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']
+ . '&amp;db=%2$s&amp;table=%1$s'
+ . '&amp;token=' . $GLOBALS['token'],
+ 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
+ . '&amp;db=%2$s&amp;table=%1$s'
+ . '&amp;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']
+ . '&amp;create_index=1&amp;added_fields=2'
+ . '&amp;db=%3$s&amp;table=%2$s&amp;token=' . $GLOBALS['token'],
+ 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server']
+ . '&amp;create_index=1&amp;added_fields=2'
+ . '&amp;db=%3$s&amp;table=%2$s&amp;token=' . $GLOBALS['token'],
+ );
+ $new->classes = 'new_index italics';
+ $this->addChild($new);
+ }
+}
+
+?>