Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Procedure_Container.class.php
blobe190b230422192549ace205a75dd9410e25ff3e0
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 procedure nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Procedure_Container extends Node_DatabaseChild_Container
21 /**
22 * Initialises the class
24 public function __construct()
26 parent::__construct(__('Procedures'), Node::CONTAINER);
27 $this->icon = PMA_Util::getImage('b_routines.png', __('Procedures'));
28 $this->links = array(
29 'text' => 'db_routines.php?server=' . $GLOBALS['server']
30 . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token ']
31 . '&amp;type=PROCEDURE',
32 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
33 . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token ']
34 . '&amp;type=PROCEDURE',
36 $this->real_name = 'procedures';
38 $new_label = _pgettext('Create new procedure', 'New');
39 $new = PMA_NodeFactory::getInstance('Node', $new_label);
40 $new->isNew = true;
41 $new->icon = PMA_Util::getImage('b_routine_add.png', $new_label);
42 $new->links = array(
43 'text' => 'db_routines.php?server=' . $GLOBALS['server']
44 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']
45 . '&add_item=1',
46 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
47 . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']
48 . '&add_item=1',
50 $new->classes = 'new_procedure italics';
51 $this->addChild($new);