Link extends Text
Link element HTML writer
Tags
Table of Contents
- $element : AbstractElement
- Element
- $escaper : Escaper|AbstractEscaper
- $parentWriter : AbstractWriter
- 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
- __construct() : mixed
- Create new instance
- setClosingText() : mixed
- Set closing text.
- setOpeningText() : mixed
- Set opening text.
- setWithoutP() : mixed
- Set without paragraph.
- write() : string
- Write link
- writeClosing() : string
- Write ending
- writeOpening() : string
- Write opening
- getFontStyle() : mixed
- Get font style.
- getParagraphStyle() : string
- Write paragraph style
- writeTrackChangeClosing() : string
- writes the track change closing tag
- writeTrackChangeOpening() : string
- writes the track change opening tag
Properties
$element
Element
protected
AbstractElement
$element
$escaper
protected
Escaper|AbstractEscaper
$escaper
$parentWriter
Parent writer
protected
AbstractWriter
$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(AbstractWriter $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : AbstractWriter
- $element : AbstractElement
- $withoutP : bool = false
Return values
mixed —setClosingText()
Set closing text.
public
setClosingText(string $value) : mixed
Parameters
- $value : string
Return values
mixed —setOpeningText()
Set opening text.
public
setOpeningText(string $value) : mixed
Parameters
- $value : string
Return values
mixed —setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : mixed
Parameters
- $value : bool
Return values
mixed —write()
Write link
public
write() : string
Return values
string —writeClosing()
Write ending
protected
writeClosing() : string
Return values
string —writeOpening()
Write opening
protected
writeOpening() : string
Return values
string —getFontStyle()
Get font style.
private
getFontStyle() : mixed
Return values
mixed —getParagraphStyle()
Write paragraph style
private
getParagraphStyle() : string
Return values
string —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