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