当前位置: 首页>>代码示例>>PHP>>正文


PHP ilObjStyleSheet::getSyntaxStylePath方法代码示例

本文整理汇总了PHP中ilObjStyleSheet::getSyntaxStylePath方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjStyleSheet::getSyntaxStylePath方法的具体用法?PHP ilObjStyleSheet::getSyntaxStylePath怎么用?PHP ilObjStyleSheet::getSyntaxStylePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilObjStyleSheet的用法示例。


在下文中一共展示了ilObjStyleSheet::getSyntaxStylePath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  *
  * @param	object	$a_parent_obj
  * @param	int $table_id 
  * @param	int $a_definition_id 
  */
 public function __construct($table_id, $a_definition_id = 0)
 {
     global $tpl;
     //TODO Permission-Check
     $this->table_id = $table_id;
     if (!$a_definition_id) {
         $a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id);
     }
     // we always need a page object - create on demand
     if (!$a_definition_id) {
         $viewdef = new ilDataCollectionRecordViewViewdefinition(0, $this->table_id);
         $viewdef->create();
         $a_definition_id = $viewdef->getId();
     }
     parent::__construct("dclf", $a_definition_id);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     // config
     $this->setPreventHTMLUnmasking(true);
     $this->setEnabledPCTabs(true);
     $this->setEnabledMaps(false);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledWikiLinks(false);
     $this->setEnabledActivation(false);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:38,代码来源:class.ilDataCollectionRecordViewViewdefinitionGUI.php

示例2: getPageHTML

 /**
  * Render COPage
  * 
  * @see ilContainerGUI
  * @return string
  */
 protected function getPageHTML()
 {
     global $tpl, $ilSetting, $ilUser;
     if (!$ilSetting->get("enable_cat_page_edit")) {
         return;
     }
     $page_id = $this->start_object->getObjId();
     // if page does not exist, return nothing
     include_once "./Services/COPage/classes/class.ilPageUtil.php";
     if (!ilPageUtil::_existsAndNotEmpty("cstr", $page_id)) {
         return;
     }
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     include_once "./Services/Container/classes/class.ilContainerStartObjectsPageGUI.php";
     $page_gui = new ilContainerStartObjectsPageGUI($page_id);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(0));
     $page_gui->setPresentationTitle("");
     $page_gui->setTemplateOutput(false);
     $page_gui->setHeader("");
     return $page_gui->showPage();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:32,代码来源:class.ilContainerStartObjectsContentGUI.php

示例3: __construct

 /**
  * Constructor
  */
 function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true)
 {
     global $tpl, $ilSetting;
     $this->portfolio_id = (int) $a_portfolio_id;
     $this->enable_comments = (bool) $a_enable_comments;
     parent::__construct("prtf", $a_id, $a_old_nr);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     // #11190
     $prfa_set = new ilSetting("prfa");
     $this->setPreventHTMLUnmasking((bool) $prfa_set->get("mask", false));
     // $this->setEnabledMaps(true);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledPCTabs(true);
     $this->setEnabledProfile(true);
     if (!$ilSetting->get('disable_wsp_certificates')) {
         $this->setEnabledVerification(true);
     }
     /* embedding blog postings currently disabled 
     		if(!$ilSetting->get('disable_wsp_blogs'))
     		{
     			$this->setEnabledBlog(true);
     		}		
     		*/
     $skmg_set = new ilSetting("skmg");
     if ($skmg_set->get("enable_skmg")) {
         $this->setEnabledSkills(true);
     }
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:38,代码来源:class.ilPortfolioPageGUI.php

示例4: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     global $tpl;
     if (!ilImprint::_exists("impr", 1)) {
         $page = new ilImprint("impr");
         $page->setId(1);
         $page->create();
     }
     // there is only 1 imprint page
     parent::__construct("impr", 1);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     // config
     $this->setPreventHTMLUnmasking(true);
     $this->setEnabledPCTabs(true);
     $this->setEnabledMaps(false);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledWikiLinks(false);
     $this->setEnabledActivation(true);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:29,代码来源:class.ilImprintGUI.php

示例5: __construct

 /**
  * @param     $table_id
  * @param int $a_definition_id
  */
 public function __construct($table_id, $a_definition_id = 0)
 {
     global $tpl, $ilCtrl;
     /**
      * @var $ilCtrl ilCtrl
      */
     $this->ctrl = $ilCtrl;
     //TODO Permission-Check
     $this->table_id = $table_id;
     if (!$a_definition_id) {
         $a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id);
     }
     // we always need a page object - create on demand
     if (!$a_definition_id) {
         $viewdef = new ilDataCollectionRecordViewViewdefinition();
         $viewdef->setTableId($this->table_id);
         $viewdef->setActive(false);
         $viewdef->create();
         $a_definition_id = $viewdef->getId();
     }
     parent::__construct("dclf", $a_definition_id);
     $this->getPageObject()->setTableId($this->table_id);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:35,代码来源:class.ilDataCollectionRecordViewViewdefinitionGUI.php

示例6: __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

示例7: __construct

 /**
  * Constructor
  *
  * @param int $a_node
  * @param object $a_access_handler
  * @param int $a_id
  * @param int $a_old_nr
  * @param bool $a_enable_notes
  * @param bool $a_may_contribute
  * @return ilBlogPostingGUI
  */
 function __construct($a_node_id, $a_access_handler = null, $a_id = 0, $a_old_nr = 0, $a_enable_public_notes = true, $a_may_contribute = true)
 {
     global $tpl, $lng;
     $lng->loadLanguageModule("blog");
     $this->node_id = $a_node_id;
     $this->access_handler = $a_access_handler;
     $this->enable_public_notes = (bool) $a_enable_public_notes;
     parent::__construct("blp", $a_id, $a_old_nr);
     // #11151
     $this->may_contribute = (bool) $a_may_contribute;
     $this->setEnableEditing($a_may_contribute);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     // #11190
     $blga_set = new ilSetting("blga");
     $this->setPreventHTMLUnmasking((bool) $blga_set->get("mask", false));
     $this->setEnabledMaps(true);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledWikiLinks(false);
     $this->setEnabledPCTabs(true);
     $this->setEnabledActivation(true);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:39,代码来源:class.ilBlogPostingGUI.php

示例8: __construct

 /**
  * Constructor
  */
 function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0)
 {
     global $tpl;
     // needed for notifications
     $this->setWikiRefId($a_wiki_ref_id);
     parent::__construct("wpg", $a_id, $a_old_nr);
     $this->getPageObject()->setWikiRefId($this->getWikiRefId());
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:16,代码来源:class.ilWikiPageGUI.php

示例9: __construct

 /**
  * Constructor
  */
 function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false, $a_lang = "")
 {
     global $tpl;
     parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:16,代码来源:class.ilMediaPoolPageGUI.php

示例10: __construct

 /**
  * Constructor
  */
 function __construct($a_id = 0, $a_old_nr = 0)
 {
     global $tpl;
     parent::__construct("user", $a_id, $a_old_nr);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $this->setEnabledMaps(true);
     $this->setPreventHTMLUnmasking(true);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledPCTabs(true);
     //		$this->initPageObject($a_id, $a_old_nr);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:18,代码来源:class.ilExtPublicProfilePageGUI.php

示例11: __construct

 public function __construct($a_dcl_object)
 {
     global $tpl;
     $this->dcl_gui_object = $a_dcl_object;
     $this->record_id = $_GET['record_id'];
     $this->record_obj = ilDataCollectionCache::getRecordCache($this->record_id);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:15,代码来源:class.ilDataCollectionRecordViewGUI.php

示例12: __construct

 /**
  * Constructor
  */
 function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true)
 {
     global $tpl;
     $this->portfolio_id = (int) $a_portfolio_id;
     $this->enable_comments = (bool) $a_enable_comments;
     parent::__construct($this->getParentType(), $a_id, $a_old_nr);
     $this->getPageObject()->setPortfolioId($this->portfolio_id);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:19,代码来源:class.ilPortfolioPageGUI.php

示例13: __construct

 /**
  * Constructor
  */
 function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false)
 {
     global $tpl;
     parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id);
     // content style
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $this->setEnabledMaps(false);
     $this->setPreventHTMLUnmasking(false);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledWikiLinks(false);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:20,代码来源:class.ilMediaPoolPageGUI.php

示例14: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     global $tpl;
     if (!ilImprint::_exists("impr", 1)) {
         $page = new ilImprint("impr");
         $page->setId(1);
         $page->create();
     }
     // there is only 1 imprint page
     parent::__construct("impr", 1);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:22,代码来源:class.ilImprintGUI.php

示例15: __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


注:本文中的ilObjStyleSheet::getSyntaxStylePath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。