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

