PHP 클래스 Xpressengine\Menu\Models\MenuItem

저자: XE Developers ([email protected])
상속: extends Xpressengine\Category\Models\CategoryItem
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$incrementing boolean Indicates if the IDs are auto-incrementing.
$timestamps boolean Indicates if the model should be timestamped.

보호된 프로퍼티들

프로퍼티 타입 설명
$casts array The attributes that should be cast to native types.
$closureTable string The hierarchy table associated with the model.
$fillable array The attributes that are mass assignable.
$linkResolver Closure
$selected boolean Indicates if the model selected.
$table string The table associated with the model.

공개 메소드들

메소드 설명
basicImage ( ) : BelongsTo Basic link image relationship
getAggregatorKeyName ( ) : string Get the aggregator key name for model
getAggregatorModel ( ) : string Get the aggregator model name for model
getChildren ( ) : Illuminate\Database\Eloquent\Collection Get a children collection of model
getHoverImage ( ) : Image | null Get hover link image of model
getLinkAttribute ( ) : string Get link attribute
getMBasicImage ( ) : Image | null Get mobile basic link image of model
getMHoverImage ( ) : Image | null Get mobile hover link image of model
getMSelectedImage ( ) : Image | null Get mobile selected link image of model
getSelectedImage ( ) : Image | null Get selected link image of model
hoverImage ( ) : BelongsTo Hover link image relationship
isSelected ( ) : boolean Determine if model is selected
mBasicImage ( ) : BelongsTo Mobile basic link image relationship
mHoverImage ( ) : BelongsTo Mobile hover link image relationship
mSelectedImage ( ) : BelongsTo Mobile selected link image relationship
menu ( ) : BelongsTo Alias aggregator
route ( ) : Illuminate\Database\Eloquent\Relations\HasOne Instance route relationship
selectedImage ( ) : BelongsTo Selected link image relationship
setLinkResolver ( Closure $callback ) : void Set the link resolver callback
setSelected ( boolean $bool = true ) : void Set model selected
toArray ( ) : array Convert the model instance to an array.

메소드 상세

basicImage() 공개 메소드

Basic link image relationship
public basicImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

getAggregatorKeyName() 공개 메소드

Get the aggregator key name for model
public getAggregatorKeyName ( ) : string
리턴 string

getAggregatorModel() 공개 메소드

Get the aggregator model name for model
public getAggregatorModel ( ) : string
리턴 string

getChildren() 공개 메소드

Get a children collection of model
public getChildren ( ) : Illuminate\Database\Eloquent\Collection
리턴 Illuminate\Database\Eloquent\Collection

getHoverImage() 공개 메소드

Get hover link image of model
public getHoverImage ( ) : Image | null
리턴 Xpressengine\Media\Models\Image | null

getLinkAttribute() 공개 메소드

Get link attribute
public getLinkAttribute ( ) : string
리턴 string

getMBasicImage() 공개 메소드

Get mobile basic link image of model
public getMBasicImage ( ) : Image | null
리턴 Xpressengine\Media\Models\Image | null

getMHoverImage() 공개 메소드

Get mobile hover link image of model
public getMHoverImage ( ) : Image | null
리턴 Xpressengine\Media\Models\Image | null

getMSelectedImage() 공개 메소드

Get mobile selected link image of model
public getMSelectedImage ( ) : Image | null
리턴 Xpressengine\Media\Models\Image | null

getSelectedImage() 공개 메소드

Get selected link image of model
public getSelectedImage ( ) : Image | null
리턴 Xpressengine\Media\Models\Image | null

hoverImage() 공개 메소드

Hover link image relationship
public hoverImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

isSelected() 공개 메소드

Determine if model is selected
public isSelected ( ) : boolean
리턴 boolean

mBasicImage() 공개 메소드

Mobile basic link image relationship
public mBasicImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

mHoverImage() 공개 메소드

Mobile hover link image relationship
public mHoverImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

mSelectedImage() 공개 메소드

Mobile selected link image relationship
public mSelectedImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

menu() 공개 메소드

Alias aggregator
public menu ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

route() 공개 메소드

Instance route relationship
public route ( ) : Illuminate\Database\Eloquent\Relations\HasOne
리턴 Illuminate\Database\Eloquent\Relations\HasOne

selectedImage() 공개 메소드

Selected link image relationship
public selectedImage ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

setLinkResolver() 공개 정적인 메소드

Set the link resolver callback
public static setLinkResolver ( Closure $callback ) : void
$callback Closure resolver callback
리턴 void

setSelected() 공개 메소드

Set model selected
public setSelected ( boolean $bool = true ) : void
$bool boolean boolean value
리턴 void

toArray() 공개 메소드

Convert the model instance to an array.
public toArray ( ) : array
리턴 array

프로퍼티 상세

$casts 보호되어 있는 프로퍼티

The attributes that should be cast to native types.
protected array $casts
리턴 array

$closureTable 보호되어 있는 프로퍼티

The hierarchy table associated with the model.
protected string $closureTable
리턴 string

$fillable 보호되어 있는 프로퍼티

The attributes that are mass assignable.
protected array $fillable
리턴 array

$incrementing 공개적으로 프로퍼티

Indicates if the IDs are auto-incrementing.
public bool $incrementing
리턴 boolean

$linkResolver 보호되어 있는 정적으로 프로퍼티

protected static Closure $linkResolver
리턴 Closure

$selected 보호되어 있는 프로퍼티

Indicates if the model selected.
protected bool $selected
리턴 boolean

$table 보호되어 있는 프로퍼티

The table associated with the model.
protected string $table
리턴 string

$timestamps 공개적으로 프로퍼티

Indicates if the model should be timestamped.
public bool $timestamps
리턴 boolean