\PhpOffice\PhpWord\Writer\Word2007\PartContentTypes

Word2007 contenttypes part writer: [Content_Types].xml

Summary

Methods
Properties
Constants
write()
setParentWriter()
getParentWriter()
No public properties found
No constants found
getXmlWriter()
writeText()
$parentWriter
$dateFormat
N/A
writeContentType()
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

writeContentType()

writeContentType(\PhpOffice\Common\XMLWriter  $xmlWriter, array  $parts, boolean  $isDefault) 

Write content types element

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

XML Writer

array $parts
boolean $isDefault