# Agreement

URL: https://chugunov.pro/api-bitrix/main/userconsent/agreement/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Main\UserConsent\Agreement`
Модуль: Main.

Исходный файл: `source/main/lib/userconsent/agreement.php:24`

## Константы (4)

- `ACTIVE`
- `NOT_ACTIVE`
- `TYPE_CUSTOM`
- `TYPE_STANDARD`

## Методы (23)

- [`__construct()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/__construct/) — Конструктор.
- [`static getActiveList()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getactivelist/) — Получает список активных соглашений.
- [`getData()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getdata/) — Получает данные соглашения.
- [`getErrors()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/geterrors/) — Получает ошибки.
- [`getFields()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getfields/) — Возвращает поля.
- [`getFieldValues()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getfieldvalues/) — Возвращает значения полей.
- [`getHtml()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/gethtml/) — Получает html.
- [`getId()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getid/) — Получает идентификатор соглашения.
- [`getLabel()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getlabel/) — Получает подпись с символами '%' для ссылки в тексте подписи.
- [`getLabelText()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/getlabeltext/) — Получает текст подписи.
- [`getText()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/gettext/) — Получает текст.
- [`getTitle()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/gettitle/) — Получает заголовок.
- [`static getTypeNames()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/gettypenames/) — Получает типы.
- [`getUrl()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/geturl/) — Получает url.
- [`hasErrors()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/haserrors/) — Есть ошибки.
- [`isActive()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/isactive/) — Возвращает true, если активно.
- [`isAgreementTextHtml()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/isagreementtexthtml/)
- [`isExist()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/isexist/) — Возвращает true, если существует.
- [`load()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/load/) — Возвращает true, если используется.
- [`mergeData()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/mergedata/) — Объединяет данные соглашения.
- [`save()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/save/) — Сохраняет данные соглашения.
- [`setData()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/setdata/) — Устанавливает данные соглашения.
- [`setReplace()`](https://chugunov.pro/api-bitrix/main/userconsent/agreement/setreplace/) — Устанавливает замену.

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Main-UserConsent-Agreement.html
