2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
12 require_once 'libraries/navigation/Nodes/Node_DatabaseChild_Container.class.php';
15 * Represents a container for procedure nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Procedure_Container
extends Node_DatabaseChild_Container
22 * Initialises the class
24 public function __construct()
26 parent
::__construct(__('Procedures'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('b_routines.png', __('Procedures'));
29 'text' => 'db_routines.php?server=' . $GLOBALS['server']
30 . '&db=%1$s&token=' . $_SESSION[' PMA_token ']
31 . '&type=PROCEDURE',
32 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
33 . '&db=%1$s&token=' . $_SESSION[' PMA_token ']
34 . '&type=PROCEDURE',
36 $this->real_name
= 'procedures';
38 $new_label = _pgettext('Create new procedure', 'New');
39 $new = PMA_NodeFactory
::getInstance('Node', $new_label);
41 $new->icon
= PMA_Util
::getImage('b_routine_add.png', $new_label);
43 'text' => 'db_routines.php?server=' . $GLOBALS['server']
44 . '&db=%2$s&token=' . $_SESSION[' PMA_token ']
46 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
47 . '&db=%2$s&token=' . $_SESSION[' PMA_token ']
50 $new->classes
= 'new_procedure italics';
51 $this->addChild($new);