class RichText

This class allows the storage and retrieval of rich text.

Properties

private string $content
private string $edition

Methods

void
__construct(string $content, string $edition = 'manual')

Constructor of class RichText

bool
isManual()

Indicates if this text was edited manually or not

string
getEdition()

Returns the edition mode of this rich text

void
setEdition(string $edition = 'manual')

Sets the edition mode of this rich text

string
getContent()

Returns the text content

void
setContent(string $content)

Sets the text content

Details

at line 63
void __construct(string $content, string $edition = 'manual')

Constructor of class RichText

Parameters

string $content The text content
string $edition The edition mode of this rich text

Return Value

void

at line 75
bool isManual()

Indicates if this text was edited manually or not

Return Value

bool true if this text was edited manually, false otherwise

at line 86
string getEdition()

Returns the edition mode of this rich text

Return Value

string The edition mode of this rich text

at line 98
void setEdition(string $edition = 'manual')

Sets the edition mode of this rich text

Parameters

string $edition The edition mode of this rich text

Return Value

void

at line 109
string getContent()

Returns the text content

Return Value

string The text content

at line 121
void setContent(string $content)

Sets the text content

Parameters

string $content The text content

Return Value

void