Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Database_Container.class.php
blobdc7994900aab11bd6fc6d8cd2f154e413c59c54d
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/check_user_privileges.lib.php';
14 /**
15 * Represents a container for database nodes in the navigation tree
17 * @package PhpMyAdmin-Navigation
19 class Node_Database_Container extends Node
21 /**
22 * Initialises the class
24 * @param string $name An identifier for the new node
26 public function __construct($name)
28 parent::__construct($name, Node::CONTAINER);
30 if ($GLOBALS['is_create_db_priv']
31 && $GLOBALS['cfg']['ShowCreateDb'] !== false
32 ) {
33 $new = PMA_NodeFactory::getInstance(
34 'Node', _pgettext('Create new database', 'New')
36 $new->isNew = true;
37 $new->icon = PMA_Util::getImage('b_newdb.png', '');
38 $new->links = array(
39 'text' => 'server_databases.php?server=' . $GLOBALS['server']
40 . '&amp;token=' . $_SESSION[' PMA_token '],
41 'icon' => 'server_databases.php?server=' . $GLOBALS['server']
42 . '&amp;token=' . $_SESSION[' PMA_token '],
44 $new->classes = 'new_database italics';
45 $this->addChild($new);