PMA\libraries\navigation\nodes\NodeDatabase::__construct PHP Метод

__construct() публичный Метод

Initialises the class
public __construct ( string $name, integer $type = Node::OBJECT, boolean $is_group = false )
$name string An identifier for the new node
$type integer Type of node, may be one of CONTAINER or OBJECT
$is_group boolean Whether this object has been created while grouping nodes
    public function __construct($name, $type = Node::OBJECT, $is_group = false)
    {
        parent::__construct($name, $type, $is_group);
        $this->icon = Util::getImage('s_db.png', __('Database operations'));
        $script_name = Util::getScriptNameForOption($GLOBALS['cfg']['DefaultTabDatabase'], 'database');
        $this->links = array('text' => $script_name . '?server=' . $GLOBALS['server'] . '&db=%1$s', 'icon' => 'db_operations.php?server=' . $GLOBALS['server'] . '&db=%1$s&', 'title' => __('Structure'));
        $this->classes = 'database';
    }