Bitrix API

DocxXml extends Xml

Table of Contents

Constants

BODY_NODE_NAME  = 'body'
DOCUMENT_NODE_NAME  = 'document'
NUMBERING_TYPE_ORDERED  = 'ordered'
NUMBERING_TYPE_UNORDERED  = 'unordered'

Methods

appendXmlToNode()  : mixed
findImages()  : array<string|int, mixed>
Get all drawing nodes marked with placeholders.
getBodyNodeName()  : string
getDocumentContentNodes()  : DOMNodeList
getDocumentNodeName()  : string
getDomDocument()  : DOMDocument
getFileExtension()  : string
getFileMimeType()  : string
getMainPrefix()  : string
getNamespaces()  : array<string|int, mixed>
getPlaceholders()  : array<string|int, mixed>
getRandomId()  : string
getValidXmlWithContent()  : string
getXPath()  : DOMXPath
insertXmlBeforeNode()  : mixed
isFileProcessable()  : mixed
normalizeContent()  : void
Normalizes content of the document, removing unnecessary tags between {}
process()  : Result
Parse $content, process commands, fill values.

Constants

BODY_NODE_NAME

public mixed BODY_NODE_NAME = 'body'

DOCUMENT_NODE_NAME

public mixed DOCUMENT_NODE_NAME = 'document'

NUMBERING_TYPE_ORDERED

public mixed NUMBERING_TYPE_ORDERED = 'ordered'

NUMBERING_TYPE_UNORDERED

public mixed NUMBERING_TYPE_UNORDERED = 'unordered'

Methods

appendXmlToNode()

public static appendXmlToNode(string $xml, DOMDocument $document, DOMNode $node) : mixed
Parameters
$xml : string
$document : DOMDocument
$node : DOMNode

findImages()

Get all drawing nodes marked with placeholders.

public findImages([bool $generateNewImageIds = false ][, DOMNode|null $contextNode = null ]) : array<string|int, mixed>

If $generateNewImageIds is true - will replace relation ids to new values.

Parameters
$generateNewImageIds : bool = false
$contextNode : DOMNode|null = null
Return values
array<string|int, mixed>

getBodyNodeName()

public static getBodyNodeName([string $mainPrefix = '' ]) : string
Parameters
$mainPrefix : string = ''
Return values
string

getDocumentContentNodes()

public static getDocumentContentNodes(DOMDocument $document[, string $prefix = '' ]) : DOMNodeList
Parameters
$document : DOMDocument
$prefix : string = ''
Return values
DOMNodeList

getDocumentNodeName()

public static getDocumentNodeName([string $mainPrefix = '' ]) : string
Parameters
$mainPrefix : string = ''
Return values
string

getDomDocument()

public getDomDocument() : DOMDocument
Return values
DOMDocument

getFileExtension()

public getFileExtension() : string
Return values
string

getFileMimeType()

public getFileMimeType() : string
Return values
string

getMainPrefix()

public static getMainPrefix() : string
Return values
string

getNamespaces()

public static getNamespaces() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPlaceholders()

public getPlaceholders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRandomId()

public static getRandomId([string $prefix = '' ][, bool $insert = false ]) : string
Parameters
$prefix : string = ''
$insert : bool = false
Return values
string

getValidXmlWithContent()

public static getValidXmlWithContent([string $content = '' ][, string $mainPrefix = '' ][, array<string|int, mixed> $namespaces = [] ]) : string
Parameters
$content : string = ''
$mainPrefix : string = ''
$namespaces : array<string|int, mixed> = []
Return values
string

getXPath()

public getXPath() : DOMXPath
Return values
DOMXPath

insertXmlBeforeNode()

public static insertXmlBeforeNode(string $xml, DOMDocument $document, DOMNode $node) : mixed
Parameters
$xml : string
$document : DOMDocument
$node : DOMNode

isFileProcessable()

public isFileProcessable() : mixed

normalizeContent()

Normalizes content of the document, removing unnecessary tags between {}

public normalizeContent() : void

process()

Parse $content, process commands, fill values.

public process() : Result

Returns true on success, false on failure.

Return values
Result

        
On this page

Search results