2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
13 * Represents a container for functions nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Function_Container
extends Node
20 * Initialises the class
22 * @return Node_Column_Container
24 public function __construct()
26 parent
::__construct(__('Functions'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('b_routines.png');
29 'text' => 'db_routines.php?server=' . $GLOBALS['server']
30 . '&db=%1$s&token=' . $GLOBALS['token'],
31 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
32 . '&db=%1$s&token=' . $GLOBALS['token'],
34 $this->real_name
= 'functions';
36 $new = PMA_NodeFactory
::getInstance('Node', _pgettext('Create new function', 'New'));
38 $new->icon
= PMA_Util
::getImage('b_routine_add.png', '');
40 'text' => 'db_routines.php?server=' . $GLOBALS['server']
41 . '&db=%2$s&token=' . $GLOBALS['token']
42 . '&add_item=1&item_type=FUNCTION',
43 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
44 . '&db=%2$s&token=' . $GLOBALS['token']
45 . '&add_item=1&item_type=FUNCTION',
47 $new->classes
= 'new_function italics';
48 $this->addChild($new);