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 (opens new window)

# Public Methods

Method Description
__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()

Signature

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

# getPage()

Signature

public string, null getPage ( $pageNumber )

# getPages()

Returns an array of the individual page contents.

View source (opens new window)

Returns

array (opens new window)

Signature

public array getPages ( )

# getParsedContent()

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

View source (opens new window)

Returns

string (opens new window)

Signature

public string getParsedContent ( )

# getRawContent()

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

View source (opens new window)

Returns

string (opens new window)

Signature

public string getRawContent ( )

# getTotalPages()

Returns the total number of pages.

View source (opens new window)

Returns

integer (opens new window)

Signature

public integer getTotalPages ( )