- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/rest.php
- Класс: BitrixImOpenLinesRest
- Вызов: Rest::configListGet
static function configListGet($arParams, $n, CRestServer $server)
{
$config = new Config();
$arParams['PARAMS'] = !empty($arParams['PARAMS']) && is_array($arParams['PARAMS']) ? $arParams['PARAMS'] : [];
$arParams['OPTIONS'] = !empty($arParams['OPTIONS']) && is_array($arParams['OPTIONS']) ? $arParams['OPTIONS'] : [];
if (isset($arParams['PARAMS']['select']) && !is_array($arParams['PARAMS']['select']))
{
throw new RestException('A wrong format for the PARAMS field 'select' is passed', 'INVALID_FORMAT', CRestServer::STATUS_WRONG_REQUEST);
}
if (isset($arParams['PARAMS']['order']) && !is_array($arParams['PARAMS']['order']))
{
throw new RestException('A wrong format for the PARAMS field 'order' is passed', 'INVALID_FORMAT', CRestServer::STATUS_WRONG_REQUEST);
}
if (isset($arParams['PARAMS']['filter']) && !is_array($arParams['PARAMS']['filter']))
{
throw new RestException('A wrong format for the PARAMS field 'filter' is passed', 'INVALID_FORMAT', CRestServer::STATUS_WRONG_REQUEST);
}
return $config->getList($arParams['PARAMS'], $arParams['OPTIONS']);
}