\PhpOffice\PhpWord\Writer\ODText\PartAbstractPart

ODText writer part abstract

Summary

Methods
Properties
Constants
write()
setParentWriter()
getParentWriter()
No public properties found
No constants found
getXmlWriter()
writeText()
writeCommonRootAttributes()
writeFontFaces()
$parentWriter
$dateFormat
N/A
No private methods found
No private properties found
N/A

Properties

$dateFormat

$dateFormat : string

Type

string — Date format

Methods

write()

write() : string

Write part

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

writeCommonRootAttributes()

writeCommonRootAttributes(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write common root attributes.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeFontFaces()

writeFontFaces(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write font faces declaration.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter