Properties

$dateFormat

$dateFormat : string

Type

string — Date format

$settings

$settings : array

Settings value

Type

array

Methods

write()

write() : string

Write part

Returns

string

writeSetting()

writeSetting(\PhpOffice\Common\XMLWriter  $xmlWriter, string  $settingKey, array|string  $settingValue) 

Write indivual setting, recursive to any child settings.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter
string $settingKey
array|string $settingValue

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

getSettings()

getSettings() 

Get settings.

setOnOffValue()

setOnOffValue(string  $settingName, boolean|null  $booleanValue) 

Adds a boolean attribute to the settings array

Parameters

string $settingName
boolean|null $booleanValue

setDocumentProtection()

setDocumentProtection(\PhpOffice\PhpWord\Metadata\Protection  $documentProtection) 

Get protection settings.

Parameters

\PhpOffice\PhpWord\Metadata\Protection $documentProtection

setZoom()

setZoom(mixed  $zoom = null) 

Set the magnification

Parameters

mixed $zoom

setConsecutiveHyphenLimit()

setConsecutiveHyphenLimit(integer|null  $consecutiveHyphenLimit) 

Parameters

integer|null $consecutiveHyphenLimit

setHyphenationZone()

setHyphenationZone(float|null  $hyphenationZone) 

Parameters

float|null $hyphenationZone

setCompatibility()

setCompatibility() 

Get compatibility setting.