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


PHP ilObjStyleSheet::getPlaceHolderStylePath方法代碼示例

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


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

示例1: __construct

 function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
 {
     global $tpl, $ilCtrl;
     parent::__construct($a_parent_type, $a_id, $a_old_nr);
     //associated object
     include_once "./Services/Style/classes/class.ilPageLayout.php";
     $this->layout_object = new ilPageLayout($a_id);
     $this->layout_object->readObject();
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId()));
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
     $tpl->parseCurrentBlock();
     $this->setEnabledMaps(false);
     $this->setPreventHTMLUnmasking(false);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledSelfAssessment(false);
     $this->setStyleId($this->layout_object->getStyleId());
     //set For GUI and associated object
     $this->setLayoutMode(true);
     $this->obj->setLayoutMode(true);
     $this->slm_id = $a_slm_id;
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:27,代碼來源:class.ilPageLayoutGUI.php

示例2: showPage

 function showPage()
 {
     if (!$this->getPageObject()) {
         return;
     }
     switch ($this->getPageObject()->getType()) {
         case ilPortfolioTemplatePage::TYPE_BLOG_TEMPLATE:
             return $this->renderBlogTemplate();
         default:
             // needed for placeholders
             include_once "Services/Style/classes/class.ilObjStyleSheet.php";
             $this->tpl->addCss(ilObjStyleSheet::getPlaceHolderStylePath());
             return parent::showPage();
     }
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:15,代碼來源:class.ilPortfolioTemplatePageGUI.php

示例3: __construct

 function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
 {
     global $tpl, $ilCtrl;
     parent::__construct($a_parent_type, $a_id, $a_old_nr);
     //associated object
     include_once "./Services/Style/classes/class.ilPageLayout.php";
     $this->layout_object = new ilPageLayout($a_id);
     $this->layout_object->readObject();
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId()));
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
     $tpl->parseCurrentBlock();
     $this->setStyleId($this->layout_object->getStyleId());
     $this->slm_id = $a_slm_id;
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:20,代碼來源:class.ilPageLayoutGUI.php

示例4: setContentStyle

 /**
  * Set content style sheet
  */
 function setContentStyle()
 {
     global $tpl;
     // content styles
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->slm_object->getStyleSheetId()));
     $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:16,代碼來源:class.ilSCORM2004NodeGUI.php


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