• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/api/placement.php
  • Класс: BitrixRestApiPlacement
  • Вызов: Placement::getPlacementList
static function getPlacementList(CRestServer $server, $scopeList = null)
{
	$serviceDescription = $server->getServiceDescription();

	if($scopeList === null)
	{
		$scopeList = array_keys($serviceDescription);
	}

	$result = array();

	foreach($scopeList as $scope)
	{
		if(
			isset($serviceDescription[$scope])
			&& is_array($serviceDescription[$scope][CRestUtil::PLACEMENTS])
		)
		{
			$result = array_merge($result, $serviceDescription[$scope][CRestUtil::PLACEMENTS]);
		}
	}

	return $result;
}