method public static

PlainText::readFromStorage()

Класс: \Bitrix\DocumentGenerator\Body\PlainText

Сигнатура

public static readFromStorage(Storage $storage, mixed $from) : static|false

Параметры

$storage Storage
$from mixed

Возвращаемое значение

static|false

Как применяется в PlainText

PlainText::readFromStorage() — метод класса \Bitrix\DocumentGenerator\Body\PlainText модуля «Генератор документов».

Статический метод — вызывается через имя класса PlainText, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\DocumentGenerator\Body\PlainText;

Loader::includeModule('documentgenerator');

$storage = null; // Storage
$from = null;
$result = PlainText::readFromStorage($storage, $from);
// $result: static|false

Другие методы PlainText

readFromStorage() есть и у других классов модуля «Генератор документов»: Body, Docx, DocxXml, Xml, ZipDocument.

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

Что будем искать? Например,Продвижение