當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilObjectGUI::setTitleAndDescription方法代碼示例

本文整理匯總了PHP中ilObjectGUI::setTitleAndDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjectGUI::setTitleAndDescription方法的具體用法?PHP ilObjectGUI::setTitleAndDescription怎麽用?PHP ilObjectGUI::setTitleAndDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilObjectGUI的用法示例。


在下文中一共展示了ilObjectGUI::setTitleAndDescription方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setTitleAndDescription

 /**
  * called by prepare output
  */
 function setTitleAndDescription()
 {
     parent::setTitleAndDescription();
     $this->tpl->setDescription($this->object->getDescription());
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:8,代碼來源:class.ilObjFileAccessSettingsGUI.php

示例2: setTitleAndDescription

 /**
  * 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()));
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:33,代碼來源:class.ilObjQuestionPoolGUI.php

示例3: setTitleAndDescription

 protected function setTitleAndDescription()
 {
     return parent::setTitleAndDescription();
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:4,代碼來源:class.ilObject2GUI.php

示例4: getTemplate

 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);
     }
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:12,代碼來源:class.ilObjGlossaryGUI.php

示例5: setTabs

 /**
  * 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"));
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjContentObjectGUI.php

示例6: setTitleAndDescription

 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();
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:10,代碼來源:class.ilObjUserGUI.php


注:本文中的ilObjectGUI::setTitleAndDescription方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。