Documentation

Text extends AbstractElement
in package

Text element HTML writer.

Tags
since
0.10.0

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 text.
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

$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

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 text.

public write() : string
Return values
string

writeClosing()

Write ending.

protected writeClosing() : string
Return values
string

writeOpening()

Write opening.

protected writeOpening() : string
Return values
string

getParagraphStyle()

Write paragraph style.

private getParagraphStyle() : string
Return values
string

processFontStyle()

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


        
On this page

Search results