Documentation

ContentTypes extends AbstractPart
in package

Word2007 contenttypes part writer: [Content_Types].xml.

Table of Contents

Properties

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer.

Methods

getParentWriter()  : AbstractWriter
Get parent writer.
setParentWriter()  : void
Set parent writer.
write()  : string
Write part.
getXmlWriter()  : XMLWriter
Get XML Writer.
writeText()  : bool
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
writeContentType()  : void
Write content types element.

Properties

$dateFormat

protected string $dateFormat = 'Y-m-d\TH:i:sP'

Date format

Methods

write()

Write part.

public write() : string
Return values
string

writeText()

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().

protected writeText(string $content) : bool
Parameters
$content : string

The text string to write

Return values
bool

Returns true on success or false on failure

writeContentType()

Write content types element.

private writeContentType(XMLWriter $xmlWriter, array<string|int, mixed> $parts, bool $isDefault) : void
Parameters
$xmlWriter : XMLWriter

XML Writer

$parts : array<string|int, mixed>
$isDefault : bool

        
On this page

Search results