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

