PHP Класс Flarum\Core\Post\CommentPost

Наследование: extends Flarum\Core\Post
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$type

Защищенные свойства (Protected)

Свойство Тип Описание
$formatter Flarum\Formatter\Formatter The text formatter instance.

Открытые методы

Метод Описание
getContentAttribute ( string $value ) : string Unparse the parsed content.
getContentHtmlAttribute ( string $value ) : string Get the content rendered as HTML.
getFormatter ( ) : Formatter Get the text formatter instance.
getParsedContentAttribute ( ) : string Get the parsed/raw content.
hide ( User $actor = null ) 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, User $actor ) Revise the post's content.
setContentAttribute ( string $value ) Parse the content before it is saved to the database.
setFormatter ( Formatter $formatter ) Set the text formatter instance.

Описание методов

getContentAttribute() публичный Метод

Unparse the parsed content.
public getContentAttribute ( string $value ) : string
$value string
Результат string

getContentHtmlAttribute() публичный Метод

Get the content rendered as HTML.
public getContentHtmlAttribute ( string $value ) : string
$value string
Результат string

getFormatter() публичный статический Метод

Get the text formatter instance.
public static getFormatter ( ) : Formatter
Результат Flarum\Formatter\Formatter

getParsedContentAttribute() публичный Метод

Get the parsed/raw content.
public getParsedContentAttribute ( ) : string
Результат string

hide() публичный Метод

Hide the post.
public hide ( User $actor = null )
$actor Flarum\Core\User

reply() публичный статический Метод

Create a new instance in reply to a discussion.
public static reply ( integer $discussionId, string $content, integer $userId, string $ipAddress ) : static
$discussionId integer
$content string
$userId integer
$ipAddress string
Результат static

restore() публичный Метод

Restore the post.
public restore ( )

revise() публичный Метод

Revise the post's content.
public revise ( string $content, User $actor )
$content string
$actor Flarum\Core\User

setContentAttribute() публичный Метод

Parse the content before it is saved to the database.
public setContentAttribute ( string $value )
$value string

setFormatter() публичный статический Метод

Set the text formatter instance.
public static setFormatter ( Formatter $formatter )
$formatter Flarum\Formatter\Formatter

Описание свойств

$formatter защищенное статическое свойство

The text formatter instance.
protected static Formatter,Flarum\Formatter $formatter
Результат Flarum\Formatter\Formatter

$type публичное статическое свойство

public static $type