/**
  * view content object
  */
 function view()
 {
     if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
         $this->prepareOutput();
         parent::viewObject();
     } else {
         $this->viewObject();
     }
 }
 function viewObject()
 {
     if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
         parent::viewObject();
     } else {
     }
 }
Ejemplo n.º 3
0
 function viewObject()
 {
     global $rbacsystem;
     if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
         parent::viewObject();
         return;
     }
     if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
 }
Ejemplo n.º 4
0
 /**
  * view object content (repository/workspace switch)
  */
 public function view()
 {
     switch ($this->id_type) {
         case self::REPOSITORY_NODE_ID:
         case self::REPOSITORY_OBJECT_ID:
             return parent::viewObject();
         case self::WORKSPACE_NODE_ID:
         case self::WORKSPACE_OBJECT_ID:
             return $this->render();
         case self::OBJECT_ID:
         case self::PORTFOLIO_OBJECT_ID:
             // :TODO: should this ever occur?  do nothing or edit() ?!
             break;
     }
 }
 function viewObject()
 {
     global $rbacsystem;
     if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
         parent::viewObject();
         return;
     }
     if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
         $this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
     }
     // edit button
     $this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
     $this->tpl->setCurrentBlock("btn_cell");
     $this->tpl->setVariable("BTN_LINK", "ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=" . $this->object->getRefID());
     $this->tpl->setVariable("BTN_TARGET", " target=\"" . ilFrameTargetInfo::_getFrame("MainContent") . "\" ");
     $this->tpl->setVariable("BTN_TXT", $this->lng->txt("view"));
     $this->tpl->parseCurrentBlock();
     //parent::viewObject();
 }