PHP Class BookStack\Book

Inheritance: extends Entity
Afficher le fichier Open project: ssddanbrown/bookstack Class Usage Examples

Protected Properties

Свойство Type Description
$fillable

Méthodes publiques

Méthode Description
chapters ( ) : Illuminate\Database\Eloquent\Relations\HasMany Get all chapters within this book.
getEditUrl ( ) * Get the edit url for this book.
getExcerpt ( integer $length = 100 ) : string Get an excerpt of this book's description to the specified length or less.
getUrl ( string | boolean $path = false ) : string Get the url for this book.
pages ( ) : Illuminate\Database\Eloquent\Relations\HasMany Get all pages within this book.

Method Details

chapters() public méthode

Get all chapters within this book.
public chapters ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

getEditUrl() public méthode

* Get the edit url for this book.
public getEditUrl ( )

getExcerpt() public méthode

Get an excerpt of this book's description to the specified length or less.
public getExcerpt ( integer $length = 100 ) : string
$length integer
Résultat string

getUrl() public méthode

Get the url for this book.
public getUrl ( string | boolean $path = false ) : string
$path string | boolean
Résultat string

pages() public méthode

Get all pages within this book.
public pages ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

Property Details

$fillable protected_oe property

protected $fillable