2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
12 require_once 'libraries/navigation/Nodes/Node_DatabaseChild_Container.class.php';
15 * Represents a container for events nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Event_Container
extends Node_DatabaseChild_Container
22 * Initialises the class
24 public function __construct()
26 parent
::__construct(__('Events'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('b_events.png', '');
29 'text' => 'db_events.php?server=' . $GLOBALS['server']
30 . '&db=%1$s&token=' . $_SESSION[' PMA_token '],
31 'icon' => 'db_events.php?server=' . $GLOBALS['server']
32 . '&db=%1$s&token=' . $_SESSION[' PMA_token '],
34 $this->real_name
= 'events';
36 $new = PMA_NodeFactory
::getInstance(
37 'Node', _pgettext('Create new event', 'New')
40 $new->icon
= PMA_Util
::getImage('b_event_add.png', '');
42 'text' => 'db_events.php?server=' . $GLOBALS['server']
43 . '&db=%2$s&token=' . $_SESSION[' PMA_token ']
45 'icon' => 'db_events.php?server=' . $GLOBALS['server']
46 . '&db=%2$s&token=' . $_SESSION[' PMA_token ']
49 $new->classes
= 'new_event italics';
50 $this->addChild($new);