Property | Type | Description | |
---|---|---|---|
$type |
Property | Type | Description | |
---|---|---|---|
$formatter | The text formatter instance. |
Method | Description | |
---|---|---|
getContentAttribute ( string $value ) : string | Unparse the parsed content. | |
getContentHtmlAttribute ( string $value ) : string | Get the content rendered as HTML. | |
getFormatter ( ) : |
Get the text formatter instance. | |
getParsedContentAttribute ( ) : string | Get the parsed/raw content. | |
hide ( |
Hide the post. | |
reply ( integer $discussionId, string $content, integer $userId, string $ipAddress ) : static | Create a new instance in reply to a discussion. | |
restore ( ) | Restore the post. | |
revise ( string $content, |
Revise the post's content. | |
setContentAttribute ( string $value ) | Parse the content before it is saved to the database. | |
setFormatter ( |
Set the text formatter instance. |
public getContentAttribute ( string $value ) : string | ||
$value | string | |
return | string |
public getContentHtmlAttribute ( string $value ) : string | ||
$value | string | |
return | string |
public static getFormatter ( ) : |
||
return |
public getParsedContentAttribute ( ) : string | ||
return | string |
public setContentAttribute ( string $value ) | ||
$value | string |
public static setFormatter ( |
||
$formatter |
protected static Formatter,Flarum\Formatter $formatter | ||
return |