Property | Type | Description | |
---|---|---|---|
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
Method | Description | |
---|---|---|
__construct ( Xpressengine\Menu\MenuRepository $repo ) | AbstractDecorator constructor. | |
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 | |
fetchInItem ( array $ids, array $with = [] ) : |
Get menu items by identifier list | |
find ( string $id, array $with = [] ) : |
Find a menu | |
findItem ( string $id, array $with = [] ) : |
Find a menu item | |
insert ( |
Insert menu | |
insertItem ( |
Insert menu item | |
update ( |
Update menu | |
updateItem ( |
Update menu item |
public __construct ( Xpressengine\Menu\MenuRepository $repo ) | ||
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
public createItemModel ( |
||
$menu | menu instance | |
return |
public createModel ( ) : |
||
return |
public deleteItem ( |
||
$item | menu item instance | |
return | boolean |
public fetchInItem ( array $ids, array $with = [] ) : |
||
$ids | array | menu item identifier |
$with | array | relation |
return |
public insert ( |
||
$menu | menu instance | |
return |
public insertItem ( |
||
$item | menu item instance | |
return |
public update ( |
||
$menu | menu instance | |
return |
public updateItem ( |
||
$item | menu item instance | |
return |