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

