Documentation

Field extends Text

Field element writer.

Tags
since
0.11.0

Table of Contents

$withoutP  : bool
Without paragraph.
$element  : AbstractElement
Element.
$xmlWriter  : XMLWriter
XML writer.
__construct()  : mixed
Create new instance.
write()  : void
Write field element.
endElementP()  : void
End w:p DOM element.
getElement()  : AbstractElement
Get element.
getText()  : string
Convert text to valid format.
getXmlWriter()  : XMLWriter
Get XML Writer.
startElementP()  : void
Start w:p DOM element.
writeClosingTrackChange()  : void
Write ending.
writeCommentRangeEnd()  : void
Writes the w:commentRangeEnd DOM element.
writeCommentRangeStart()  : void
Writes the w:commentRangeStart DOM element.
writeFontStyle()  : void
Write ending.
writeMacrobutton()  : void
Writes a macrobutton field.
writeOpeningTrackChange()  : void
Write opening of changed element.
writeParagraphStyle()  : void
Write ending.
writeText()  : bool
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
buildPropertiesAndOptions()  : mixed
writeDefault()  : void
writeTextStyle()  : void
Write text style.

Properties

Methods

write()

Write field element.

public write() : void
Return values
void

endElementP()

End w:p DOM element.

protected endElementP() : void
Return values
void

getText()

Convert text to valid format.

protected getText(string $text) : string
Parameters
$text : string
Return values
string

writeClosingTrackChange()

Write ending.

protected writeClosingTrackChange() : void
Return values
void

writeCommentRangeEnd()

Writes the w:commentRangeEnd DOM element.

protected writeCommentRangeEnd() : void
Return values
void

writeCommentRangeStart()

Writes the w:commentRangeStart DOM element.

protected writeCommentRangeStart() : void
Return values
void

writeFontStyle()

Write ending.

protected writeFontStyle() : void
Return values
void

writeMacrobutton()

Writes a macrobutton field.

protected writeMacrobutton(Field $element) : void

//TODO A lot of code duplication with general method, should maybe be refactored

Parameters
$element : Field
Return values
void

writeOpeningTrackChange()

Write opening of changed element.

protected writeOpeningTrackChange() : void
Return values
void

writeParagraphStyle()

Write ending.

protected writeParagraphStyle() : void
Return values
void

writeText()

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

protected writeText(string $content) : bool
Parameters
$content : string

The text string to write

Return values
bool

Returns true on success or false on failure

buildPropertiesAndOptions()

private buildPropertiesAndOptions(Field $element) : mixed
Parameters
$element : Field
Return values
mixed

writeDefault()

private writeDefault(Field $element) : void
Parameters
$element : Field
Return values
void

writeTextStyle()

Write text style.

private writeTextStyle(string $styleType) : void
Parameters
$styleType : string

Font|Paragraph

Return values
void

Search results