PHP Класс Flarum\Core\DiscussionState

Stores information about how much of a discussion a user has read. Can also be used to store other information, if the appropriate columns are added to the database, like a user's subscription status for a discussion.
Наследование: extends Flarum\Database\AbstractModel, use trait Flarum\Core\Support\EventGeneratorTrait
Показать файл Открыть проект

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

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

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

Метод Описание
discussion ( ) : BelongsTo Define the relationship with the discussion that this state is for.
read ( integer $number ) Mark the discussion as being read up to a certain point. Raises the DiscussionWasRead event.
user ( ) : BelongsTo Define the relationship with the user that this state is for.

Защищенные методы

Метод Описание
setKeysForSaveQuery ( Builder $query ) : Builder Set the keys for a save update query.

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

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

Define the relationship with the discussion that this state is for.
public discussion ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

Mark the discussion as being read up to a certain point. Raises the DiscussionWasRead event.
public read ( integer $number )
$number integer

setKeysForSaveQuery() защищенный Метод

Set the keys for a save update query.
protected setKeysForSaveQuery ( Builder $query ) : Builder
$query Illuminate\Database\Eloquent\Builder
Результат Illuminate\Database\Eloquent\Builder

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

Define the relationship with the user that this state is for.
public user ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

$dates защищенное свойство

protected $dates

$table защищенное свойство

protected $table