icon = Util::getImage('b_browse', __('Tables')); $this->links = [ 'text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&db=%1$s&tbl_type=table', 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&db=%1$s&tbl_type=table', ]; $this->realName = 'tables'; $this->classes = 'tableContainer subContainer'; $newLabel = _pgettext('Create new table', 'New'); $new = NodeFactory::getInstance( 'Node', $newLabel ); $new->isNew = true; $new->icon = Util::getImage('b_table_add', $newLabel); $new->title = $newLabel; $new->links = [ 'text' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&db=%2$s', 'icon' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&db=%2$s', ]; $new->classes = 'new_table italics'; $this->addChild($new); } }