• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/engine/restmanager.php
  • Класс: BitrixRestEngineRestManager
  • Вызов: RestManager::fillAlternativeScope
static function fillAlternativeScope($scope, $scopeList)
{
	if (!in_array($scope, $scopeList, true))
	{
		$altScopeList = static::getAlternativeScope($scope);
		if (is_array($altScopeList))
		{
			$hasScope = array_intersect($scopeList, $altScopeList);
			if (count($hasScope) > 0)
			{
				$scopeList[] = $scope;
			}
		}
	}

	return $scopeList;
}