PHP Класс Xpressengine\Menu\Models\MenuItem

Автор: XE Developers ([email protected])
Наследование: extends Xpressengine\Category\Models\CategoryItem
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$incrementing boolean Indicates if the IDs are auto-incrementing.
$timestamps boolean Indicates if the model should be timestamped.

Защищенные свойства (Protected)

Свойство Тип Описание
$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