Свойство | Тип | Описание | |
---|---|---|---|
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
Метод | Описание | |
---|---|---|
__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 | |
Результат |
public createModel ( ) : |
||
Результат |
public deleteItem ( |
||
$item | menu item instance | |
Результат | boolean |
public fetchInItem ( array $ids, array $with = [] ) : |
||
$ids | array | menu item identifier |
$with | array | relation |
Результат |
public insert ( |
||
$menu | menu instance | |
Результат |
public insertItem ( |
||
$item | menu item instance | |
Результат |
public update ( |
||
$menu | menu instance | |
Результат |
public updateItem ( |
||
$item | menu item instance | |
Результат |