Свойство | Тип | Описание | |
---|---|---|---|
$bag | array | Data bag |
Метод | Описание | |
---|---|---|
all ( string $siteKey, array $with = [] ) : |
Get all menu | |
createItemModel ( |
Create new menu item model | |
createModel ( ) : |
Create new menu model | |
delete ( |
Delete menu | |
deleteItem ( |
Delete menu item | |
find ( string $id, array $with = [] ) : |
Find a menu | |
insertItem ( |
Insert menu item | |
update ( |
Update menu | |
updateItem ( |
Update menu item |
Метод | Описание | |
---|---|---|
getWithKey ( array $with = [] ) : string | Get sub key by relationship |
public createItemModel ( |
||
$menu | menu instance | |
Результат |
public createModel ( ) : |
||
Результат |
public deleteItem ( |
||
$item | menu item instance | |
Результат | boolean |
public insertItem ( |
||
$item | menu item instance | |
Результат |
public update ( |
||
$menu | menu instance | |
Результат |
public updateItem ( |
||
$item | menu item instance | |
Результат |