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

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

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

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

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

Свойство Тип Описание
$fillable array The attributes that are mass assignable.
$itemModel string Item model class
$table string The table associated with the model.

Открытые методы

Метод Описание
setItemSelected ( string $itemKey ) : void Set selected to item has given key
site ( ) : BelongsTo Relation of site
toArray ( ) : array Convert the model instance to an array.

Описание методов

setItemSelected() публичный Метод

Set selected to item has given key
public setItemSelected ( string $itemKey ) : void
$itemKey string item key
Результат void

site() публичный Метод

Relation of site
public site ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

toArray() публичный Метод

Convert the model instance to an array.
public toArray ( ) : array
Результат array

Описание свойств

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$incrementing публичное свойство

Indicates if the IDs are auto-incrementing.
public bool $incrementing
Результат boolean

$itemModel защищенное статическое свойство

Item model class
protected static string $itemModel
Результат string

$table защищенное свойство

The table associated with the model.
protected string $table
Результат string

$timestamps публичное свойство

Indicates if the model should be timestamped.
public bool $timestamps
Результат boolean