/** * @deprecated */ function setNavigation(StudipPluginNavigation $navigation) { parent::setNavigation($navigation); if (Navigation::hasItem('/admin/plugins')) { Navigation::addItem('/admin/plugins/' . $this->getPluginclassname(), $navigation); } }
/** * Sets the navigation of this plugin. * * @deprecated */ function setNavigation(StudipPluginNavigation $navigation) { parent::setNavigation($navigation); $navigation->setImage($this->getPluginiconname(), array('title' => $navigation->getTitle())); if ($this->getDisplayType(SYSTEM_PLUGIN_TOOLBAR)) { Navigation::addItem('/' . $this->getPluginclassname(), $navigation); } if ($this->getDisplayType(SYSTEM_PLUGIN_STARTPAGE)) { Navigation::insertItem('/start/' . $this->getPluginclassname(), $navigation, 'search'); } }
/** * Sets the navigation of this plugin. * * @deprecated */ function setNavigation(StudipPluginNavigation $navigation) { parent::setNavigation($navigation); // prepend copy of navigation to its sub navigation $item_names = array_keys($navigation->getSubNavigation()); $navigation_copy = clone $navigation; $navigation_copy->clearSubmenu(); $navigation_copy->freezeActivation(); $navigation->insertSubNavigation('self', $navigation_copy, $item_names[0]); $navigation->setTitle($this->getDisplayTitle()); // Check activation for user and display if appropriate. if (Navigation::hasItem('/profile') && is_object($this->getRequestedUser()) && $GLOBALS['perm']->have_profile_perm('user', $this->getRequestedUser()->getUserid()) && PluginManager::getInstance()->isPluginActivatedForUser($this->getPluginId(), $this->getRequestedUser()->getUserid())) { Navigation::addItem('/profile/' . $this->getPluginclassname(), $navigation); } }
function AbstractStudIPPortalPlugin() { parent::__construct(); }
/** * This method sets everything up to perform the given action and * displays the results or anything you want to. * * @param string the name of the action to accomplish * * @return void */ function display_action($action) { $GLOBALS['CURRENT_PAGE'] = $GLOBALS['SessSemName']['header_line'] . ' - ' . $this->getDisplayTitle(); parent::display_action($action); }