- Модуль: rest
- Путь к файлу: ~/bitrix/modules/rest/lib/configuration/notification.php
- Класс: BitrixRestConfigurationNotification
- Вызов: Notification::save
public function save($result): bool
{
$this->holdSaveToBase = true;
if (isset($result['ERROR_ACTION']) && $result['ERROR_ACTION'])
{
$this->add($result['ERROR_ACTION'], '', self::TYPE_NOTICE);
}
if (isset($result['ERROR_MESSAGES']) && $result['ERROR_MESSAGES'])
{
$this->add($result['ERROR_MESSAGES'], '', self::TYPE_ERROR);
}
if (isset($result['ERROR_EXCEPTION']) && $result['ERROR_EXCEPTION'])
{
$this->add($result['ERROR_EXCEPTION'], '', self::TYPE_EXCEPTION);
}
$this->holdSaveToBase = false;
return $this->setting->set(Setting::SETTING_NOTICE_COLLECTION, $this->notificationList);
}