2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Represents container node that carries children of a database
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
12 require_once 'libraries/navigation/Nodes/Node_DatabaseChild.class.php';
15 * Represents container node that carries children of a database
17 * @package PhpMyAdmin-Navigation
19 abstract class Node_DatabaseChild_Container
extends Node_DatabaseChild
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']
39 * Returns the type of the item represented by the node.
41 * @return string type of the item
43 protected function getItemType()