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()
Constructor
View source (opens new window)
Arguments
$content
(string (opens new window))$charset
(string (opens new window))
Returns
Signature
public Craft\RichTextData __construct ( $content, $charset )
# getPage()
Returns a specific page.
View source (opens new window)
Arguments
$pageNumber
(integer (opens new window))
Returns
Signature
public string, null getPage ( $pageNumber )
# getPages()
Signature
public array getPages ( )
# getParsedContent()
Returns the parsed content, with reference tags returned as HTML links.
View source (opens new window)
Returns
Signature
public string getParsedContent ( )
# getRawContent()
Signature
public string getRawContent ( )
# getTotalPages()
Signature
public integer getTotalPages ( )