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


PHP CBitrixComponent::addChildCSS方法代碼示例

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


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

示例1: endResultCache

 /**
  * Function ends the caching block of the component execution.
  *
  * <p>Note: automaticly called by includeComponentTemplate.</p>
  * @return void
  *
  */
 public final function endResultCache()
 {
     global $NavNum, $CACHE_MANAGER;
     if (!$this->__bInited) {
         return null;
     }
     if (!$this->__cache) {
         return null;
     }
     $arCache = array("arResult" => $this->arResult);
     if ($this->__template) {
         $arCache["templateCachedData"] =& $this->__template->getCachedData();
         if ($this->__component_epilog) {
             $arCache["templateCachedData"]["component_epilog"] = $this->__component_epilog;
         }
     } else {
         $arCache["templateCachedData"] = array();
     }
     if ($this->__NavNum !== false && $this->__NavNum !== $NavNum) {
         $arCache["templateCachedData"]["__NavNum"] = $NavNum - $this->__NavNum;
     }
     if (!empty($this->__children_css)) {
         $arCache["templateCachedData"]["__children_css"] = $this->__children_css;
         if ($this->__parent) {
             foreach ($this->__children_css as $cssPath) {
                 $this->__parent->addChildCSS($cssPath);
             }
         }
     }
     if (!empty($this->__children_js)) {
         $arCache["templateCachedData"]["__children_js"] = $this->__children_js;
         if ($this->__parent) {
             foreach ($this->__children_js as $jsPath) {
                 $this->__parent->addChildJS($jsPath);
             }
         }
     }
     if (!empty($this->__children_epilogs)) {
         $arCache["templateCachedData"]["__children_epilogs"] = $this->__children_epilogs;
         if ($this->__parent) {
             foreach ($this->__children_epilogs as $epilogFile) {
                 $this->__parent->addChildEpilog($epilogFile);
             }
         }
     }
     if (!empty($this->__view)) {
         $arCache["templateCachedData"]["__view"] = $this->__view;
     }
     if (!empty($this->__editButtons)) {
         $arCache["templateCachedData"]["__editButtons"] = $this->__editButtons;
     }
     $cacheWasStarted = $this->__cache->isStarted();
     $this->__cache->endDataCache($arCache);
     if (defined("BX_COMP_MANAGED_CACHE") && $cacheWasStarted) {
         $CACHE_MANAGER->endTagCache();
     }
     $this->__cache = null;
 }
開發者ID:ASDAFF,項目名稱:bxApiDocs,代碼行數:65,代碼來源:component.php


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