• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/internals/site.php
  • Класс: BitrixLandingInternalsSiteTable
  • Вызов: SiteTable::getList
static function getList(array $params = array())
{
	if (
		!isset($params['filter']) ||
		!is_array($params['filter'])
	)
	{
		$params['filter'] = array();
	}
	if (
		!isset($params['filter']['DELETED']) &&
		!isset($params['filter']['=DELETED'])
	)
	{
		$params['filter']['=DELETED'] = 'N';
	}
	if (isset($params['filter']['CHECK_PERMISSIONS']))
	{
		unset($params['filter']['CHECK_PERMISSIONS']);
	}

	// strict filter by type
	$type = null;
	if (isset($params['filter']['TYPE']))
	{
		$type = $params['filter']['TYPE'];
		unset($params['filter']['TYPE']);
	}
	if (isset($params['filter']['=TYPE']))
	{
		$type = $params['filter']['=TYPE'];
		unset($params['filter']['=TYPE']);
	}
	$allowedTypes = BitrixLandingSiteType::getFilterType();
	$params['filter']['=TYPE'] = (!is_array($type) && in_array($type, (array)$allowedTypes))
								? $type
								: $allowedTypes;

	return parent::getList($params);
}