• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/site/type.php
  • Класс: BitrixLandingSiteType
  • Вызов: Type::setScope
static function setScope($scope, array $params = [])
{
	//self::$scopeInit ||
	if (!is_string($scope) || !$scope)
	{
		return;
	}
	//if (self::$currentScopeClass === null)
	// always clear previous scope
	if (true)
	{
		Role::setExpectedType(null);
		self::$currentScopeClass = self::getScopeClass($scope);
		if (self::$currentScopeClass)
		{
			self::$scopeInit = true;
			self::$currentScopeClass::init($params);
		}
	}
}