コード例 #1
0
 /**
  * Render folder
  */
 function renderObject()
 {
     global $ilTabs;
     $this->checkPermission('read');
     $ilTabs->activateTab("view_content");
     $ret = parent::renderObject();
     return $ret;
 }
コード例 #2
0
 public function view()
 {
     $this->checkPermission("read");
     parent::renderObject();
     $this->tabs_gui->setTabActive("view_content");
     $this->tabs_gui->removeSubTab("page_editor");
     if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) and $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
         $this->toolbar->addButton($this->lng->txt("simple_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "importScreen"));
         $this->toolbar->addButton($this->lng->txt("simple_user_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleUserImportGUI", "userImportScreen"));
     }
 }
コード例 #3
0
 /**
  * Render category
  */
 function renderObject()
 {
     global $ilTabs;
     $ilTabs->activateTab("view_content");
     $ret = parent::renderObject();
     return $ret;
 }
コード例 #4
0
 public function view()
 {
     if (!$this->ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
         if ($this->ilAccess->checkAccess("visible", "", $_GET["ref_id"])) {
             ilUtil::sendFailure($this->lng->txt("msg_no_perm_read"));
             $this->ctrl->redirectByClass('ilinfoscreengui', '');
         }
         $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->WARNING);
     }
     parent::renderObject();
     $this->tabs_gui->setTabActive("view_content");
     $this->tabs_gui->removeSubTab("page_editor");
     $this->tabs_gui->removeSubTab("ordering");
     // Mantis 0014728
     if ($this->ilAccess->checkAccess("write", "", $_GET["ref_id"]) and $this->object->getRefId() == ilObjOrgUnit::getRootOrgRefId()) {
         $this->toolbar->addButton($this->lng->txt("simple_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleImportGUI", "importScreen"));
         $this->toolbar->addButton($this->lng->txt("simple_user_import"), $this->ctrl->getLinkTargetByClass("ilOrgUnitSimpleUserImportGUI", "userImportScreen"));
     }
 }
コード例 #5
0
 function renderContainer()
 {
     return parent::renderObject();
 }
コード例 #6
0
 /**
  * Render root folder
  */
 function renderObject()
 {
     global $ilTabs;
     include_once "Services/Object/classes/class.ilObjectListGUI.php";
     ilObjectListGUI::prepareJSLinks("", $this->ctrl->getLinkTargetByClass(array("ilcommonactiondispatchergui", "ilnotegui"), "", "", true, false), $this->ctrl->getLinkTargetByClass(array("ilcommonactiondispatchergui", "iltagginggui"), "", "", true, false));
     $ilTabs->activateTab("view_content");
     $ret = parent::renderObject();
     return $ret;
 }