PHP Class Xpressengine\Menu\Models\MenuItem

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Category\Models\CategoryItem
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Свойство Type Description
$incrementing boolean Indicates if the IDs are auto-incrementing.
$timestamps boolean Indicates if the model should be timestamped.

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

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

Method Details

basicImage() public méthode

Basic link image relationship
public basicImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

getAggregatorKeyName() public méthode

Get the aggregator key name for model
public getAggregatorKeyName ( ) : string
Résultat string

getAggregatorModel() public méthode

Get the aggregator model name for model
public getAggregatorModel ( ) : string
Résultat string

getChildren() public méthode

Get a children collection of model
public getChildren ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

getHoverImage() public méthode

Get hover link image of model
public getHoverImage ( ) : Image | null
Résultat Xpressengine\Media\Models\Image | null

getLinkAttribute() public méthode

Get link attribute
public getLinkAttribute ( ) : string
Résultat string

getMBasicImage() public méthode

Get mobile basic link image of model
public getMBasicImage ( ) : Image | null
Résultat Xpressengine\Media\Models\Image | null

getMHoverImage() public méthode

Get mobile hover link image of model
public getMHoverImage ( ) : Image | null
Résultat Xpressengine\Media\Models\Image | null

getMSelectedImage() public méthode

Get mobile selected link image of model
public getMSelectedImage ( ) : Image | null
Résultat Xpressengine\Media\Models\Image | null

getSelectedImage() public méthode

Get selected link image of model
public getSelectedImage ( ) : Image | null
Résultat Xpressengine\Media\Models\Image | null

hoverImage() public méthode

Hover link image relationship
public hoverImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

isSelected() public méthode

Determine if model is selected
public isSelected ( ) : boolean
Résultat boolean

mBasicImage() public méthode

Mobile basic link image relationship
public mBasicImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

mHoverImage() public méthode

Mobile hover link image relationship
public mHoverImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

mSelectedImage() public méthode

Mobile selected link image relationship
public mSelectedImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

menu() public méthode

Alias aggregator
public menu ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

route() public méthode

Instance route relationship
public route ( ) : Illuminate\Database\Eloquent\Relations\HasOne
Résultat Illuminate\Database\Eloquent\Relations\HasOne

selectedImage() public méthode

Selected link image relationship
public selectedImage ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

setLinkResolver() public static méthode

Set the link resolver callback
public static setLinkResolver ( Closure $callback ) : void
$callback Closure resolver callback
Résultat void

setSelected() public méthode

Set model selected
public setSelected ( boolean $bool = true ) : void
$bool boolean boolean value
Résultat void

toArray() public méthode

Convert the model instance to an array.
public toArray ( ) : array
Résultat array

Property Details

$casts protected_oe property

The attributes that should be cast to native types.
protected array $casts
Résultat array

$closureTable protected_oe property

The hierarchy table associated with the model.
protected string $closureTable
Résultat string

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
Résultat array

$incrementing public_oe property

Indicates if the IDs are auto-incrementing.
public bool $incrementing
Résultat boolean

$linkResolver protected_oe static_oe property

protected static Closure $linkResolver
Résultat Closure

$selected protected_oe property

Indicates if the model selected.
protected bool $selected
Résultat boolean

$table protected_oe property

The table associated with the model.
protected string $table
Résultat string

$timestamps public_oe property

Indicates if the model should be timestamped.
public bool $timestamps
Résultat boolean