PHP Class BookStack\PageRevision

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$fillable

Public Methods

Method Description
createdBy ( ) : BelongsTo Get the user that created the page revision
getPrevious ( ) : PageRevision | null Get the previous revision for the same page if existing
getUrl ( null | string $path = null ) : string Get the url for this revision.
page ( ) : BelongsTo Get the page this revision originates from.

Method Details

createdBy() public method

Get the user that created the page revision
public createdBy ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

getPrevious() public method

Get the previous revision for the same page if existing
public getPrevious ( ) : PageRevision | null
return PageRevision | null

getUrl() public method

Get the url for this revision.
public getUrl ( null | string $path = null ) : string
$path null | string
return string

page() public method

Get the page this revision originates from.
public page ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$fillable protected property

protected $fillable