\PhpOffice\PhpWord\Writer\Word2007\PartComments

Word2007 comments part writer: word/comments.xml

Summary

Methods
Properties
Constants
write()
setParentWriter()
getParentWriter()
setElements()
No public properties found
No constants found
getXmlWriter()
writeText()
writeComment()
$parentWriter
$dateFormat
$elements
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

setElements()

setElements(array<mixed,\PhpOffice\PhpWord\Element\Comment>  $elements) : self

Set element

Parameters

array<mixed,\PhpOffice\PhpWord\Element\Comment> $elements

Returns

self

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