# PlainText

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

Класс `\Bitrix\DocumentGenerator\Body\PlainText`
Модуль: DocumentGenerator.

Исходный файл: `source/documentgenerator/lib/body/plaintext.php:9`

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

- `ARRAY_INDEX_MODIFIER`
- `BLOCK_END_PLACEHOLDER`
- `BLOCK_START_PLACEHOLDER`

## Методы (19)

- [`__construct()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/__construct/) — Конструктор Body.
- [`static detectHtml()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/detecthtml/)
- [`static getCodeFromPlaceholder()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getcodefromplaceholder/)
- [`getContent()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getcontent/)
- [`getFieldNames()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getfieldnames/)
- [`getFields()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getfields/)
- [`getFileExtension()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getfileextension/)
- [`getFileMimeType()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getfilemimetype/)
- [`getPlaceholders()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getplaceholders/)
- [`getStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/getstorage/)
- [`isFileProcessable()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/isfileprocessable/)
- [`normalizeContent()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/normalizecontent/) — Нормализует содержимое body.
- [`process()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/process/) — Разобрать $content, обработать команды, заполнить значения.
- [`static readFromStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/readfromstorage/)
- [`save()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/save/)
- [`setExcludedPlaceholders()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/setexcludedplaceholders/) — Установить список плейсхолдеров, которые не будут заполнены значениями.
- [`setFields()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/setfields/)
- [`setStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/setstorage/)
- [`setValues()`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/setvalues/)

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