프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 | |
리턴 |