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 view nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_View_Container
extends Node
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', '');
29 'text' => 'db_structure.php?server=' . $GLOBALS['server']
30 . '&db=%1$s&token=' . $GLOBALS['token'],
31 'icon' => 'db_structure.php?server=' . $GLOBALS['server']
32 . '&db=%1$s&token=' . $GLOBALS['token'],
34 $this->real_name
= 'views';
36 $new = PMA_NodeFactory
::getInstance('Node', _pgettext('Create new view', 'New'));
38 $new->icon
= PMA_Util
::getImage('b_view_add.png', '');
40 'text' => 'view_create.php?server=' . $GLOBALS['server']
41 . '&db=%2$s&token=' . $GLOBALS['token'],
42 'icon' => 'view_create.php?server=' . $GLOBALS['server']
43 . '&db=%2$s&token=' . $GLOBALS['token'],
45 $new->classes
= 'new_view italics';
46 $this->addChild($new);