Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_DatabaseChild_Container.class.php
blob05c9f3e5bae46741580f95aa3e27a4be13e36b38
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Represents container node that carries children of a database
6 * @package PhpMyAdmin-Navigation
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 require_once 'libraries/navigation/Nodes/Node_DatabaseChild.class.php';
14 /**
15 * Represents container node that carries children of a database
17 * @package PhpMyAdmin-Navigation
19 abstract class Node_DatabaseChild_Container extends Node_DatabaseChild
21 /**
22 * Initialises the class by setting the common variables
24 * @param string $name An identifier for the new node
25 * @param int $type Type of node, may be one of CONTAINER or OBJECT
27 public function __construct($name, $type = Node::OBJECT)
29 parent::__construct($name, $type);
30 if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
31 $this->separator = $GLOBALS['cfg']['NavigationTreeTableSeparator'];
32 $this->separator_depth = (int)(
33 $GLOBALS['cfg']['NavigationTreeTableLevel']
38 /**
39 * Returns the type of the item represented by the node.
41 * @return string type of the item
43 protected function getItemType()
45 return 'group';