Endnotes
        
        extends Footnotes
    
    
            
            in package
            
        
    
    
    
Word2007 endnotes part writer: word/endnotes.xml.
Table of Contents
Properties
- $dateFormat : string
 - $elementNode : string
 - Name of XML node element.
 - $elements : Endnotes|Footnotes
 - Footnotes/endnotes collection to be written.
 - $parentWriter : AbstractWriter
 - Parent writer.
 - $refNode : string
 - Name of XML reference element.
 - $refStyle : string
 - Reference style name.
 - $rootNode : string
 - Name of XML root element.
 
Methods
- getParentWriter() : AbstractWriter
 - Get parent writer.
 - setElements() : self
 - Set element.
 - setParentWriter() : void
 - Set parent writer.
 - write() : string
 - Write part.
 - getXmlWriter() : XMLWriter
 - Get XML Writer.
 - writeNote() : void
 - Write note item.
 - 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
$elementNode
Name of XML node element.
    protected
        string
    $elementNode
     = 'w:endnote'
    
    
    
    
$elements
Footnotes/endnotes collection to be written.
    protected
        Endnotes|Footnotes
    $elements
    
    
    
    
    
$parentWriter
Parent writer.
    protected
        AbstractWriter
    $parentWriter
    
    
    
    
    
$refNode
Name of XML reference element.
    protected
        string
    $refNode
     = 'w:endnoteRef'
    
    
    
    
$refStyle
Reference style name.
    protected
        string
    $refStyle
     = 'EndnoteReference'
    
    
    
    
$rootNode
Name of XML root element.
    protected
        string
    $rootNode
     = 'w:endnotes'
    
    
    
    
Methods
getParentWriter()
Get parent writer.
    public
                    getParentWriter() : AbstractWriter
    Return values
AbstractWritersetElements()
Set element.
    public
                    setElements(Endnotes|Footnotes $elements) : 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
XMLWriterwriteNote()
Write note item.
    protected
                    writeNote(XMLWriter $xmlWriter, Footnote|Endnote $element) : void
    Parameters
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