• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
  • Класс: CWebDavIblock
  • Вызов: CWebDavIblock::MetaSectionHide
function MetaSectionHide(&$sectionData, $excludeByDiskCondition = false)
{
	static $cacheIdMetaSection = array();

	if(empty($this->arRootSection))
	{
		//common lib
		$userLibNeedCreateDropped = false;
	}
	elseif(!empty($this->arRootSection['SOCNET_GROUP_ID']))
	{
		//group lib
		$userLibNeedCreateDropped = false;
	}
	else
	{
		//user lib
		$userLibNeedCreateDropped = true;
	}

	$rootId = isset($this->arRootSection['ID'])?  $this->arRootSection['ID'] : 0;
	$key = $this->IBLOCK_ID . '_' . $rootId;

	if (!isset($cacheIdMetaSection[$key]))
	{
		$cacheIdMetaSection[$key] = array();
		foreach ($this->meta_names as $metaID => $arMeta)
		{
			if ($arMeta['show_in_list'] === false || $excludeByDiskCondition && $arMeta['show_in_list_disk'] === false)
			{
				// GetMetaID is already cached
				//We don't auto create DROPPED folder in common (=shared), group storages.
				$sectionId = intval($this->GetMetaID($metaID, !($userLibNeedCreateDropped && $metaID == self::DROPPED)));
				if($sectionId)
				{
					$cacheIdMetaSection[$key][$sectionId] = true;
				}
			}
		}
	}
	return isset($cacheIdMetaSection[$key][intval($sectionData['ID'])]);
}