本文整理汇总了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;
}