function view()
 {
     if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
         $this->prepareOutput();
         parent::viewObject();
     } else {
         $this->properties();
     }
 }
 function properties()
 {
     // OVERWRITTEN METHOD, TO ADD TRANSLATIONS
     parent::properties();
     // BUTTONS
     $this->tpl->setVariable("BTN1_NAME", "addTranslation");
     $this->tpl->setVariable("BTN1_TEXT", $this->lng->txt("cont_new_assignment"));
     if ($trs = $this->object->getTranslations()) {
         include_once "./Services/Object/classes/class.ilObjectFactory.php";
         foreach ($trs as $tr) {
             $tmp_obj = ilObjectFactory::getInstanceByRefId($tr);
             $this->tpl->setCurrentBlock("TRANSLATION_ROW");
             $this->tpl->setVariable("ROW_ID", $tr);
             $this->tpl->setVariable("ROW_TITLE", $tmp_obj->getTitle());
             $this->tpl->parseCurrentBlock();
             unset($tmp_obj);
         }
         $this->tpl->setVariable("BTN2_NAME", "deleteTranslation");
         $this->tpl->setVariable("BTN2_TEXT", $this->lng->txt("cont_del_assignment"));
     }
     $this->tpl->setCurrentBlock("TRANSLATION");
     $this->tpl->setVariable("TRANSLATION_HEADER", $this->lng->txt("cont_translations"));
     $this->tpl->parseCurrentBlock();
 }
 /**
  * Init set page layout form.
  */
 public function initSetPageLayoutForm()
 {
     global $lng, $ilCtrl;
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $this->form = new ilPropertyFormGUI();
     if (is_array($_POST["id"])) {
         foreach ($_POST["id"] as $id) {
             $hi = new ilHiddenInputGUI("id[]");
             $hi->setValue($id);
             $this->form->addItem($hi);
         }
     }
     $layout = ilObjContentObjectGUI::getLayoutOption($lng->txt("cont_layout"), "layout", $this->content_object->getLayout());
     $this->form->addItem($layout);
     $this->form->addCommandButton("savePageLayout", $lng->txt("save"));
     $this->form->addCommandButton("showHierarchy", $lng->txt("cancel"));
     $this->form->setTitle($lng->txt("cont_set_layout"));
     $this->form->setFormAction($ilCtrl->getFormAction($this));
 }
예제 #4
0
     require_once "./Modules/Glossary/classes/class.ilGlossaryTermGUI.php";
     $target_ref_id = $target_arr[2];
     ilGlossaryTermGUI::_goto($target_id, $target_ref_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "glo":
     require_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
     ilObjGlossaryGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "lm":
 case "dbk":
     require_once "./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php";
     ilObjContentObjectGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "htlm":
     require_once "./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php";
     ilObjFileBasedLMGUI::_goto($target_id);
     break;
     // please migrate to default branch implementation
 // please migrate to default branch implementation
 case "frm":
     require_once "./Modules/Forum/classes/class.ilObjForumGUI.php";
     $target_thread = $target_arr[2];
     $target_posting = $target_arr[3];
     ilObjForumGUI::_goto($target_id, $target_thread, $target_posting);
     break;