/** * Render folder */ function renderObject() { global $ilTabs; $this->checkPermission('read'); $ilTabs->activateTab("view_content"); $ret = parent::renderObject(); return $ret; }
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")); } }
/** * Render category */ function renderObject() { global $ilTabs; $ilTabs->activateTab("view_content"); $ret = parent::renderObject(); return $ret; }
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")); } }
function renderContainer() { return parent::renderObject(); }
/** * 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; }