Numbering
extends AbstractPart
in package
Word2007 numbering part writer: word/numbering.xml.
Tags
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().
- getRandomHexNumber() : string
- Get random hexadecimal number value.
- writeFont() : void
- Write level font.
- writeLevel() : void
- Write level.
- writeParagraph() : void
- Write level paragraph.
Properties
$dateFormat
protected
string
$dateFormat
= 'Y-m-d\TH:i:sP'
Date format
$parentWriter
Parent writer.
protected
AbstractWriter
$parentWriter
Methods
getParentWriter()
Get parent writer.
public
getParentWriter() : AbstractWriter
Return values
AbstractWritersetParentWriter()
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
getRandomHexNumber()
Get random hexadecimal number value.
private
getRandomHexNumber([int $length = 8 ]) : string
Parameters
- $length : int = 8
Return values
stringwriteFont()
Write level font.
private
writeFont(XMLWriter $xmlWriter, NumberingLevel $level) : void
Parameters
- $xmlWriter : XMLWriter
- $level : NumberingLevel
Tags
writeLevel()
Write level.
private
writeLevel(XMLWriter $xmlWriter, NumberingLevel $level) : void
Parameters
- $xmlWriter : XMLWriter
- $level : NumberingLevel
writeParagraph()
Write level paragraph.
private
writeParagraph(XMLWriter $xmlWriter, NumberingLevel $level) : void
Parameters
- $xmlWriter : XMLWriter
- $level : NumberingLevel