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