Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Event_Container.class.php
blob0abc9a537de32bc64204bb7bedf64df6676df44e
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 require_once 'libraries/navigation/Nodes/Node_DatabaseChild_Container.class.php';
14 /**
15 * Represents a container for events nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Event_Container extends Node_DatabaseChild_Container
21 /**
22 * Initialises the class
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=' . $_SESSION[' PMA_token '],
31 'icon' => 'db_events.php?server=' . $GLOBALS['server']
32 . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '],
34 $this->real_name = 'events';
36 $new = PMA_NodeFactory::getInstance(
37 'Node', _pgettext('Create new event', 'New')
39 $new->isNew = true;
40 $new->icon = PMA_Util::getImage('b_event_add.png', '');
41 $new->links = array(
42 'text' => 'db_events.php?server=' . $GLOBALS['server']
43 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']
44 . '&add_item=1',
45 'icon' => 'db_events.php?server=' . $GLOBALS['server']
46 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']
47 . '&add_item=1',
49 $new->classes = 'new_event italics';
50 $this->addChild($new);