PHP Class BookStack\Chapter

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

Protected Properties

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

Méthodes publiques

Méthode Description
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.

Method Details

book() public méthode

Get the book this chapter is within.
public book ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

getExcerpt() public méthode

Get an excerpt of this chapter'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 of this chapter.
public getUrl ( string | boolean $path = false ) : string
$path string | boolean
Résultat string

pages() public méthode

Get the pages that this chapter contains.
public pages ( ) : mixed
Résultat mixed

Property Details

$fillable protected_oe property

protected $fillable