icon = PMA_Util::getImage('b_views.png', __('Views')); $this->links = array( 'text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&db=%1$s&token=' . $GLOBALS['token'], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&db=%1$s&token=' . $GLOBALS['token'], ); $this->classes = 'viewContainer'; $this->real_name = 'views'; $new_label = _pgettext('Create new view', 'New'); $new = PMA_NodeFactory::getInstance('Node', $new_label); $new->isNew = true; $new->icon = PMA_Util::getImage('b_view_add.png', $new_label); $new->links = array( 'text' => 'view_create.php?server=' . $GLOBALS['server'] . '&db=%2$s&token=' . $GLOBALS['token'], 'icon' => 'view_create.php?server=' . $GLOBALS['server'] . '&db=%2$s&token=' . $GLOBALS['token'], ); $new->classes = 'new_view italics'; $this->addChild($new); } } ?>