Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Function.class.php
blob44901155b1af247e5d5605142768252df2aa1705
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.class.php';
14 /**
15 * Represents a function node in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Function extends Node_DatabaseChild
21 /**
22 * Initialises the class
24 * @param string $name An identifier for the new node
25 * @param int $type Type of node, may be one of CONTAINER or OBJECT
26 * @param bool $is_group Whether this object has been created
27 * while grouping nodes
29 public function __construct($name, $type = Node::OBJECT, $is_group = false)
31 parent::__construct($name, $type, $is_group);
32 $this->icon = PMA_Util::getImage('b_routines.png', __('Function'));
33 $this->links = array(
34 'text' => 'db_routines.php?server=' . $GLOBALS['server']
35 . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=FUNCTION'
36 . '&amp;edit_item=1&amp;token=' . $_SESSION[' PMA_token '],
37 'icon' => 'db_routines.php?server=' . $GLOBALS['server']
38 . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=FUNCTION'
39 . '&amp;execute_dialog=1&amp;token=' . $_SESSION[' PMA_token ']
41 $this->classes = 'function';
44 /**
45 * Returns the type of the item represented by the node.
47 * @return string type of the item
49 protected function getItemType()
51 return 'function';