Footer
extends AbstractPart
in package
Word2007 footer part writer: word/footerx.xml.
Table of Contents
Properties
- $dateFormat : string
- $element : Footer
- Footer/header element to be written.
- $parentWriter : AbstractWriter
- Parent writer.
- $rootElement : string
- Root element name.
Methods
- getParentWriter() : AbstractWriter
- Get parent writer.
- setElement() : self
- Set element.
- 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().
Properties
$dateFormat
protected
string
$dateFormat
= 'Y-m-d\TH:i:sP'
Date format
$element
Footer/header element to be written.
protected
Footer
$element
$parentWriter
Parent writer.
protected
AbstractWriter
$parentWriter
$rootElement
Root element name.
protected
string
$rootElement
= 'w:ftr'
Methods
getParentWriter()
Get parent writer.
public
getParentWriter() : AbstractWriter
Return values
AbstractWritersetElement()
Set element.
public
setElement(Footer|Header $element) : self
Parameters
Return values
selfsetParentWriter()
Set parent writer.
public
setParentWriter([AbstractWriter|null $writer = null ]) : void
Parameters
- $writer : AbstractWriter|null = null
write()
Write part.
public
write() : string
Return values
stringgetXmlWriter()
Get XML Writer.
protected
getXmlWriter() : XMLWriter
Return values
XMLWriterwriteText()
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