• Модуль: scale
  • Путь к файлу: ~/bitrix/modules/scale/lib/serversdata.php
  • Класс: BitrixScaleServersData
  • Вызов: ServersData::getServerRoles
static function getServerRoles($hostname)
{
	if($hostname == '')
		throw new BitrixMainArgumentNullException("hostname");

	$result = array();
	$server = static::getServer($hostname);

	if(isset($server["roles"]))
		$result = $server["roles"];

	$result["SERVER"] = array();

	return $result;
}