$phpWord
$phpWord : \PhpOffice\PhpWord\PhpWord
PhpWord object
Field element
$phpWord : \PhpOffice\PhpWord\PhpWord
PhpWord object
$docPart : string
Document part type: Section|Header|Footer|Footnote|Endnote
Used by textrun and cell container to determine where the element is located because it will affect the availability of other element, e.g. footnote will not be available when $docPart is header or footer.
$commentRangeStart : \PhpOffice\PhpWord\Element\Comment
The start position for the linked comment
$commentRangeEnd : \PhpOffice\PhpWord\Element\Comment
The end position for the linked comment
$text : \PhpOffice\PhpWord\Element\TextRun|string
Field text
$fontStyle : \PhpOffice\PhpWord\Style\Font
Font style
$parent : \PhpOffice\PhpWord\Element\AbstractElement
A reference to the parent
$trackChange : \PhpOffice\PhpWord\Element\TrackChange
changed element info
getPhpWord() : \PhpOffice\PhpWord\PhpWord
Get PhpWord
setPhpWord(\PhpOffice\PhpWord\PhpWord $phpWord = null)
Set PhpWord as reference.
\PhpOffice\PhpWord\PhpWord | $phpWord |
getCommentRangeStart() : \PhpOffice\PhpWord\Element\Comment
Get comment start
setCommentRangeStart(\PhpOffice\PhpWord\Element\Comment $value)
Set comment start
\PhpOffice\PhpWord\Element\Comment | $value |
getCommentRangeEnd() : \PhpOffice\PhpWord\Element\Comment
Get comment end
setCommentRangeEnd(\PhpOffice\PhpWord\Element\Comment $value)
Set comment end
\PhpOffice\PhpWord\Element\Comment | $value |
setParentContainer(\PhpOffice\PhpWord\Element\AbstractElement $container)
Set parent container
Passed parameter should be a container, except for Table (contain Row) and Row (contain Cell)
\PhpOffice\PhpWord\Element\AbstractElement | $container |
setTrackChange(\PhpOffice\PhpWord\Element\TrackChange $trackChange)
Sets the trackChange information
\PhpOffice\PhpWord\Element\TrackChange | $trackChange |
getTrackChange() : \PhpOffice\PhpWord\Element\TrackChange
Gets the trackChange information
__construct(string $type = null, array $properties = array(), array $options = array(), \PhpOffice\PhpWord\Element\TextRun|string|null $text = null)
Create a new Field Element
string | $type | |
array | $properties | |
array | $options | |
\PhpOffice\PhpWord\Element\TextRun|string|null | $text |
setText(string|\PhpOffice\PhpWord\Element\TextRun $text = null) : null|string|\PhpOffice\PhpWord\Element\TextRun
Set Field text
string|\PhpOffice\PhpWord\Element\TextRun | $text |
getText() : string|\PhpOffice\PhpWord\Element\TextRun
Get Field text