method public

Document::setStorage()

Класс: \Bitrix\DocumentGenerator\Document

Сигнатура

public setStorage(Storage $storage) : $this

Параметры

$storage Storage

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

$this

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

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

Метод объекта: сначала нужен экземпляр Document.

use Bitrix\Main\Loader;
use Bitrix\DocumentGenerator\Document;

Loader::includeModule('documentgenerator');

/** @var Document $object */
$storage = null; // Storage
$result = $object->setStorage($storage);
// $result: $this

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

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

Исходный файл: source/documentgenerator/lib/document.php:1411

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