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