PHP 클래스 BookStack\Page

상속: extends Entity
파일 보기 프로젝트 열기: ssddanbrown/bookstack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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