ListItemRun
extends TextRun
in package
ListItem element HTML writer.
Tags
Table of Contents
Properties
- $element : AbstractElement
- Element.
- $parentWriter : HTML
- Parent writer.
- $withoutP : bool
- Without paragraph.
- $closingTags : string
- Closing tag.
- $closingText : string
- Text written before closing.
- $openingTags : string
- Opening tags.
- $openingText : string
- Text written after opening.
Methods
- __construct() : mixed
- Create new instance.
- setClosingText() : void
- Set closing text.
- setOpeningText() : void
- Set opening text.
- setWithoutP() : void
- Set without paragraph.
- write() : string
- Write list item.
- writeClosing() : string
- Write ending.
- writeOpening() : string
- Write opening.
- getParagraphStyle() : string
- Write paragraph style.
- processFontStyle() : void
- Get font style.
- writeTrackChangeClosing() : string
- writes the track change closing tag.
- writeTrackChangeOpening() : string
- writes the track change opening tag.
Properties
$element
Element.
protected
AbstractElement
$element
$parentWriter
Parent writer.
protected
HTML
$parentWriter
$withoutP
Without paragraph.
protected
bool
$withoutP
= false
$closingTags
Closing tag.
private
string
$closingTags
= ''
$closingText
Text written before closing.
private
string
$closingText
= ''
$openingTags
Opening tags.
private
string
$openingTags
= ''
$openingText
Text written after opening.
private
string
$openingText
= ''
Methods
__construct()
Create new instance.
public
__construct(HTML $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : HTML
- $element : AbstractElement
- $withoutP : bool = false
setClosingText()
Set closing text.
public
setClosingText(string $value) : void
Parameters
- $value : string
setOpeningText()
Set opening text.
public
setOpeningText(string $value) : void
Parameters
- $value : string
setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : void
Parameters
- $value : bool
write()
Write list item.
public
write() : string
Return values
stringwriteClosing()
Write ending.
protected
writeClosing() : string
Return values
stringwriteOpening()
Write opening.
protected
writeOpening() : string
Return values
stringgetParagraphStyle()
Write paragraph style.
private
getParagraphStyle() : string
Return values
stringprocessFontStyle()
Get font style.
private
processFontStyle() : void
writeTrackChangeClosing()
writes the track change closing tag.
private
writeTrackChangeClosing() : string
Return values
string —the HTML, an empty string if no track change information
writeTrackChangeOpening()
writes the track change opening tag.
private
writeTrackChangeOpening() : string
Return values
string —the HTML, an empty string if no track change information