icon = Generator::getImage('b_routines', __('Procedure')); $this->links = [ 'text' => Url::getFromRoute('/database/routines', [ 'server' => $GLOBALS['server'], 'item_type' => 'PROCEDURE', 'edit_item' => 1, ]) . '&db=%2$s&item_name=%1$s', 'icon' => Url::getFromRoute('/database/routines', [ 'server' => $GLOBALS['server'], 'item_type' => 'PROCEDURE', 'execute_dialog' => 1, ]) . '&db=%2$s&item_name=%1$s', ]; $this->classes = 'procedure'; } /** * Returns the type of the item represented by the node. * * @return string type of the item */ protected function getItemType() { return 'procedure'; } }