method
public
Docx::setStorage()
Сигнатура
public setStorage(Storage $storage) : $this
Параметры
$storage
Storage
Возвращаемое значение
$this
Как применяется в Docx
Docx::setStorage() — метод класса \Bitrix\DocumentGenerator\Body\Docx модуля «Генератор документов».
Метод объекта: сначала нужен экземпляр Docx.
use Bitrix\Main\Loader;
use Bitrix\DocumentGenerator\Body\Docx;
Loader::includeModule('documentgenerator');
/** @var Docx $object */
$storage = null; // Storage
$result = $object->setStorage($storage);
// $result: $thisДругие методы Docx
__destruct()detectHtml()getCodeFromPlaceholder()getContent()getFieldNames()getFields()getFileExtension()getFileMimeType()getPlaceholders()getStorage()isFileProcessable()normalizeContent()Нормализует содержимое документа, удаляя ненужные теги между {}
setStorage() есть и у других классов модуля «Генератор документов»: Body, Document, DocxXml, PlainText, Xml, ZipDocument.
Исходный файл: source/documentgenerator/lib/body/docx.php:74

