• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/templateref.php
  • Класс: BitrixLandingTemplateRef
  • Вызов: TemplateRef::landingIsArea
static function landingIsArea($lid)
{
	$res = TemplateRefTable::getList(array(
		'filter' => array(
			'LANDING_ID' => $lid
		)
	));
	if (is_array($lid))
	{
		$return = array();
		foreach ($lid as $id)
		{
			$return[(int)$id] = false;
		}
		while ($row = $res->fetch())
		{
			$return[$row['LANDING_ID']] = true;
		}
		return $return;
	}
	else
	{
		return $res->fetch() ? true : false;
	}
}