/**
  * Add admin panel command
  */
 public function prepareOutput()
 {
     parent::prepareOutput();
     $this->getTabs();
     return true;
     global $ilAccess, $ilSetting;
     global $ilUser;
     if ($_SESSION['il_cont_admin_panel']) {
         $GLOBALS["tpl"]->setAdminViewButton($this->ctrl->getLinkTarget($this, "disableAdministrationPanel"), $this->lng->txt("basic_commands"));
         $GLOBALS["tpl"]->addAdminPanelCommand("delete", $this->lng->txt("delete_selected_items"));
         if (!$_SESSION["clipboard"]) {
             $GLOBALS["tpl"]->addAdminPanelCommand("cut", $this->lng->txt("move_selected_items"));
             $GLOBALS["tpl"]->addAdminPanelCommand("link", $this->lng->txt("link_selected_items"));
         } else {
             $GLOBALS["tpl"]->addAdminPanelCommand("paste", $this->lng->txt("paste_clipboard_items"));
             $GLOBALS["tpl"]->addAdminPanelCommand("clear", $this->lng->txt("clear_clipboard"));
         }
     } elseif ($ilUser->getId() != ANONYMOUS_USER_ID) {
         $GLOBALS["tpl"]->setAdminViewButton($this->ctrl->getLinkTarget($this, "enableAdministrationPanel"), $this->lng->txt("all_commands"));
     }
     $this->ctrl->setParameter($this, "type", "");
     $this->ctrl->setParameter($this, "item_ref_id", "");
     $GLOBALS["tpl"]->setPageFormAction($this->ctrl->getFormAction($this));
 }
 /**
  * Add admin panel command
  * @todo 
  */
 public function prepareOutput()
 {
     parent::prepareOutput();
     $this->getTabs();
     return true;
 }
Esempio n. 3
0
 function prepareOutput()
 {
     global $ilTabs, $ilHelp;
     parent::prepareOutput();
     $ilHelp->setScreenIdComponent("src");
     $ilTabs->addTab("search", $this->lng->txt("search"), $this->ctrl->getLinkTarget($this));
     if (!$this->settings->getHideAdvancedSearch()) {
         $ilTabs->addTab("adv_search", $this->lng->txt("search_advanced"), $this->ctrl->getLinkTargetByClass('iladvancedsearchgui'));
     }
     $ilTabs->activateTab("search");
 }