• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/inheritedproperty/basetemplate.php
  • Класс: BitrixIblockInheritedPropertyBaseTemplate
  • Вызов: BaseTemplate::hasTemplates
public function hasTemplates(BaseValues $entity)
{
	static $cache = array();
	$iblockId = $entity->getIblockId();
	if (!isset($cache[$iblockId]))
	{
		$templateList = BitrixIblockInheritedPropertyTable::getList(array(
			"select" => array("ID"),
			"filter" => array(
				"=IBLOCK_ID" => $iblockId,
			),
			"limit" => 1,
		));
		$cache[$iblockId] = is_array($templateList->fetch());
	}
	return $cache[$iblockId];
}