/** * called by prepare output */ function setTitleAndDescription() { parent::setTitleAndDescription(); $this->tpl->setDescription($this->object->getDescription()); }
/** * called by prepare output */ function setTitleAndDescription() { parent::setTitleAndDescription(); if ($_GET["q_id"] > 0) { include_once "./Modules/TestQuestionPool/classes/class.assQuestionGUI.php"; $q_gui = assQuestionGUI::_getQuestionGUI("", $_GET["q_id"]); if ($q_gui->object instanceof assQuestion) { $q_gui->object->setObjId($this->object->getId()); $title = $q_gui->object->getTitle(); if (!$title) { $title = $this->lng->txt('new') . ': ' . assQuestion::_getQuestionTypeName($q_gui->object->getQuestionType()); } $this->tpl->setTitle($title); $this->tpl->setDescription($q_gui->object->getComment()); if ($this->object instanceof ilObjectPlugin) { $this->tpl->setTitleIcon($this->object->plugin->getImagePath("icon_" . $this->object->getType() . ".svg"), $this->lng->txt("obj_" . $this->object->getType())); } else { $this->tpl->setTitleIcon(ilObject::_getIcon("", "big", $this->object->getType())); } } else { // Workaround for context issues: If no object was found, redirect without q_id parameter $this->ctrl->setParameter($this, 'q_id', ''); $this->ctrl->redirect($this); } } else { $this->tpl->setTitle($this->object->getTitle()); $this->tpl->setDescription($this->object->getLongDescription()); $this->tpl->setTitleIcon(ilObject::_getIcon("", "big", $this->object->getType())); } }
protected function setTitleAndDescription() { return parent::setTitleAndDescription(); }
function getTemplate() { $this->tpl->getStandardTemplate(); $title = $this->object->getTitle(); if ($this->term_id > 0) { $this->tpl->setTitle($this->lng->txt("term") . ": " . ilGlossaryTerm::_lookGlossaryTerm($this->term_id)); } else { parent::setTitleAndDescription(); $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo.svg")); $this->tpl->setTitle($this->lng->txt("glo") . ": " . $title); } }
/** * output tabs */ function setTabs($a_act = "") { global $lng, $ilHelp; $ilHelp->setScreenIdComponent("lm"); $this->addTabs($a_act); parent::setTitleAndDescription(); $this->tpl->setTitle($this->object->getTitle()); $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_lm.svg"), $lng->txt("obj_lm")); }
function setTitleAndDescription() { if (strtolower(get_class($this->object)) == 'ilobjuser') { $this->tpl->setTitle('[' . $this->object->getLogin() . '] ' . $this->object->getTitle()); $this->tpl->setDescription($this->object->getLongDescription()); $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_" . $this->object->getType() . ".svg"), $this->lng->txt("obj_" . $this->object->getType())); } else { parent::setTitleAndDescription(); } }