• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/rest.php
  • Класс: BitrixImOpenLinesRest
  • Вызов: Rest::configGet
static function configGet($arParams, $n, CRestServer $server)
{
	$arParams['CONFIG_ID'] = (int)$arParams['CONFIG_ID'];

	if ($arParams['CONFIG_ID'] <= 0)
	{
		throw new RestException('Config ID can't be empty', 'CONFIG_ID_EMPTY', CRestServer::STATUS_WRONG_REQUEST);
	}

	$arParams['WITH_QUEUE'] = isset($arParams['WITH_QUEUE']) ? $arParams['WITH_QUEUE'] == 'Y' : true;
	$arParams['SHOW_OFFLINE'] = isset($arParams['SHOW_OFFLINE']) ? $arParams['SHOW_OFFLINE'] == 'Y' : true;

	$config = new Config();

	return $config->get($arParams['CONFIG_ID'], $arParams['WITH_QUEUE'], $arParams['SHOW_OFFLINE']);
}