• Модуль: salescenter
  • Путь к файлу: ~/bitrix/modules/salescenter/lib/driver.php
  • Класс: BitrixSalesCenterDriver
  • Вызов: Driver::getFilterForAnotherSitePages
public function getFilterForAnotherSitePages()
{
	if(LandingManager::getInstance()->isEnabled())
	{
		return Query::filter()
			->addCondition(Query::filter()
				->where('HIDDEN', '=', 'N')
			)
			->addCondition(Query::filter()
				->logic('or')
				->whereNull('LANDING_ID')
				->whereIn('LANDING_ID',
					LandingTable::query()
						->addSelect('ID')
						->whereNot('SITE_ID', LandingManager::getInstance()->getConnectedSiteId())
						->whereNot('DELETED', 'Y')
						->whereNot('SITE.DELETED', 'Y'))
			);
	}

	return ['=ID' => 0];
}