icon = Util::getImage('b_routines', __('Functions')); $this->links = [ 'text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&db=%1$s&type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&db=%1$s&type=FUNCTION', ]; $this->realName = 'functions'; $newLabel = _pgettext('Create new function', 'New'); $new = NodeFactory::getInstance( 'Node', $newLabel ); $new->isNew = true; $new->icon = Util::getImage('b_routine_add', $newLabel); $new->title = $newLabel; $new->links = [ 'text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&db=%2$s&add_item=1&item_type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&db=%2$s&add_item=1&item_type=FUNCTION', ]; $new->classes = 'new_function italics'; $this->addChild($new); } }