Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_View_Container.class.php
blobada9027ff48c689d349afba85b490f2913bb8930
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 view nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_View_Container extends Node
19 /**
20 * Initialises the class
22 * @return Node_View_Container
24 public function __construct()
26 parent::__construct(__('Views'), Node::CONTAINER);
27 $this->icon = PMA_Util::getImage('b_views.png', '');
28 $this->links = array(
29 'text' => 'db_structure.php?server=' . $GLOBALS['server']
30 . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'],
31 'icon' => 'db_structure.php?server=' . $GLOBALS['server']
32 . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'],
34 $this->real_name = 'views';
36 $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new view', 'New'));
37 $new->isNew = true;
38 $new->icon = PMA_Util::getImage('b_view_add.png', '');
39 $new->links = array(
40 'text' => 'view_create.php?server=' . $GLOBALS['server']
41 . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'],
42 'icon' => 'view_create.php?server=' . $GLOBALS['server']
43 . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'],
45 $new->classes = 'new_view italics';
46 $this->addChild($new);