PHP Класс BookStack\Chapter

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

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

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

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

Метод Описание
book ( ) : BelongsTo Get the book this chapter is within.
getExcerpt ( integer $length = 100 ) : string Get an excerpt of this chapter's description to the specified length or less.
getUrl ( string | boolean $path = false ) : string Get the url of this chapter.
pages ( ) : mixed Get the pages that this chapter contains.

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

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

Get the book this chapter is within.
public book ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

Get an excerpt of this chapter's description to the specified length or less.
public getExcerpt ( integer $length = 100 ) : string
$length integer
Результат string

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

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

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

Get the pages that this chapter contains.
public pages ( ) : mixed
Результат mixed

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

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

protected $fillable