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() : void
- Set closing text.
- setOpeningText() : void
- Set opening text.
- setWithoutP() : void
- Set without paragraph.
- write() : string
- Write link.
- writeClosing() : string
- Write ending.
- writeOpening() : string
- Write opening.
- getFontStyle() : void
- 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) : void
Parameters
- $value : string
Return values
void —setOpeningText()
Set opening text.
public
setOpeningText(string $value) : void
Parameters
- $value : string
Return values
void —setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : void
Parameters
- $value : bool
Return values
void —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() : void
Return values
void —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