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