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

