\PhpOffice\PhpWord\Writer\Word2007\ElementContainer

Container element writer (section, textrun, header, footnote, cell, etc.)

Summary

Methods
Properties
Constants
write()
__construct()
No public properties found
No constants found
getXmlWriter()
getElement()
startElementP()
endElementP()
writeCommentRangeStart()
writeCommentRangeEnd()
writeParagraphStyle()
writeFontStyle()
getText()
writeText()
$withoutP
$namespace
N/A
writeTextStyle()
writeElement()
$xmlWriter
$element
N/A

Properties

$withoutP

$withoutP : boolean

Without paragraph

Type

boolean

$namespace

$namespace : string

Namespace; Can't use __NAMESPACE__ in inherited class (ODText)

Type

string

Methods

write()

write() 

Write element.

startElementP()

startElementP() 

Start w:p DOM element.

endElementP()

endElementP() 

End w:p DOM element.

writeCommentRangeStart()

writeCommentRangeStart() 

Writes the w:commentRangeStart DOM element

writeCommentRangeEnd()

writeCommentRangeEnd() 

Writes the w:commentRangeEnd DOM element

writeParagraphStyle()

writeParagraphStyle() 

Write ending.

writeFontStyle()

writeFontStyle() 

Write ending.

getText()

getText(string  $text) : string

Convert text to valid format

Parameters

string $text

Returns

string

writeText()

writeText(string  $content) : boolean

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()

Parameters

string $content

The text string to write

Returns

boolean —

Returns true on success or false on failure

writeTextStyle()

writeTextStyle(string  $styleType) 

Write text style.

Parameters

string $styleType

Font|Paragraph