PHP Класс BookStack\Page

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

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

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

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

Метод Описание
attachments ( ) : Illuminate\Database\Eloquent\Relations\HasMany Get the attachments assigned to this page.
book ( ) : BelongsTo Get the book this page sits in.
chapter ( ) : BelongsTo Get the chapter that this page is in, If applicable.
getExcerpt ( integer $length = 100 ) : mixed Get an excerpt of this page's content to the specified length.
getUrl ( string | boolean $path = false ) : string Get the url for this page.
hasChapter ( ) : boolean Check if this page has a chapter.
revisions ( ) : mixed Get the associated page revisions, ordered by created date.
toSimpleArray ( ) : mixed Converts this page into a simplified array.

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

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

Get the attachments assigned to this page.
public attachments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

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

Get the book this page sits in.
public book ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

Get the chapter that this page is in, If applicable.
public chapter ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

Get an excerpt of this page's content to the specified length.
public getExcerpt ( integer $length = 100 ) : mixed
$length integer
Результат mixed

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

Get the url for this page.
public getUrl ( string | boolean $path = false ) : string
$path string | boolean
Результат string

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

Check if this page has a chapter.
public hasChapter ( ) : boolean
Результат boolean

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

Get the associated page revisions, ordered by created date.
public revisions ( ) : mixed
Результат mixed

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

Converts this page into a simplified array.
public toSimpleArray ( ) : mixed
Результат mixed

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

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

protected $fillable

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

protected $simpleAttributes