RichTextData

Type
Class
Namespace
Craft
Inherits
Craft\RichTextData » Twig_Markup
Since
1.0

Stores the data for Rich Text fields.

See also http://craftcms.com

View source

Public Methods

MethodDescription
__construct()Constructor
getPage()Returns a specific page.
getPages()Returns an array of the individual page contents.
getParsedContent()Returns the parsed content, with reference tags returned as HTML links.
getRawContent()Returns the raw content, with reference tags still in-tact.
getTotalPages()Returns the total number of pages.

__construct()

Constructor

View source

Arguments

Returns

Craft\RichTextData

Signature

public Craft\RichTextData __construct ( $content, $charset )

getPage()

Returns a specific page.

View source

Arguments

Returns

string, null

Signature

public string, null getPage ( $pageNumber )

getPages()

Returns an array of the individual page contents.

View source

Returns

array

Signature

public array getPages ( )

getParsedContent()

Returns the parsed content, with reference tags returned as HTML links.

View source

Returns

string

Signature

public string getParsedContent ( )

getRawContent()

Returns the raw content, with reference tags still in-tact.

View source

Returns

string

Signature

public string getRawContent ( )

getTotalPages()

Returns the total number of pages.

View source

Returns

integer

Signature

public integer getTotalPages ( )