• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/internals/landing.php
  • Класс: BitrixLandingInternalsLandingTable
  • Вызов: LandingTable::getList
static function getList(array $params = array())
{
	if (Landing::checkDeleted())
	{
		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']['SITE.DELETED']) &&
			!isset($params['filter']['=SITE.DELETED'])
		)
		{
			$params['filter']['=SITE.DELETED'] = 'N';
		}
	}
	if (isset($params['filter']['CHECK_PERMISSIONS']))
	{
		unset($params['filter']['CHECK_PERMISSIONS']);
	}

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

	return parent::getList($params);
}