Documentation

Text extends AbstractElement
in package

Text element writer.

Tags
since
0.10.0

Table of Contents

Properties

$part  : null|AbstractPart
$withoutP  : bool
Without paragraph.
$element  : AbstractElement
Element.
$xmlWriter  : XMLWriter
XML writer.

Methods

__construct()  : mixed
Create new instance.
getPart()  : AbstractPart|null
setPart()  : self
write()  : void
Write 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.
writeCommentRangeEnd()  : void
Writes the w:commentRangeEnd DOM element.
writeCommentRangeStart()  : void
Writes the w:commentRangeStart DOM element.
writeFontStyle()  : void
Write ending.
writeParagraphStyle()  : void
Write ending.
writeText()  : bool
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
replacetabs()  : void
writeChangeInsertion()  : void
writeTextStyle()  : void
Write text style.

Properties

Methods

write()

Write element.

public write() : void

getText()

Convert text to valid format.

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

writeCommentRangeEnd()

Writes the w:commentRangeEnd DOM element.

protected writeCommentRangeEnd() : void

writeCommentRangeStart()

Writes the w:commentRangeStart DOM element.

protected writeCommentRangeStart() : void

writeParagraphStyle()

Write ending.

protected writeParagraphStyle() : 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

replacetabs()

private replacetabs(mixed $text, mixed $xmlWriter) : void
Parameters
$text : mixed
$xmlWriter : mixed

writeChangeInsertion()

private writeChangeInsertion([mixed $start = true ][, TrackChange|null $trackChange = null ]) : void
Parameters
$start : mixed = true
$trackChange : TrackChange|null = null

writeTextStyle()

Write text style.

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

Font|Paragraph


        
On this page

Search results