PHP Class Xpressengine\Menu\Models\Menu

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Category\Models\Category
Mostra file Open project: xpressengine/xpressengine Class Usage Examples

Public Properties

Property Type Description
$incrementing boolean Indicates if the IDs are auto-incrementing.
$timestamps boolean Indicates if the model should be timestamped.

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$itemModel string Item model class
$table string The table associated with the model.

Public Methods

Method Description
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.

Method Details

setItemSelected() public method

Set selected to item has given key
public setItemSelected ( string $itemKey ) : void
$itemKey string item key
return void

site() public method

Relation of site
public site ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

toArray() public method

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

Property Details

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
return array

$incrementing public_oe property

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

$itemModel protected_oe static_oe property

Item model class
protected static string $itemModel
return string

$table protected_oe property

The table associated with the model.
protected string $table
return string

$timestamps public_oe property

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