프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
메소드 | 설명 | |
---|---|---|
__construct ( Xpressengine\Menu\MenuRepository $repo, Xpressengine\Support\CacheInterface $cache ) | CacheDecorator 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 | |
find ( string $id, array $with = [] ) : |
Find a menu | |
insert ( |
Insert menu | |
insertItem ( |
Insert menu item | |
update ( |
Update menu | |
updateItem ( |
Update menu item |
메소드 | 설명 | |
---|---|---|
getCacheKey ( string $keyword ) : string | String for cache key |
메소드 | 설명 | |
---|---|---|
getWithKey ( array $with = [] ) : string | Get sub key by relationship |
public __construct ( Xpressengine\Menu\MenuRepository $repo, Xpressengine\Support\CacheInterface $cache ) | ||
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
$cache | Xpressengine\Support\CacheInterface | Cache instance |
public createItemModel ( |
||
$menu | menu instance | |
리턴 |
public createModel ( ) : |
||
리턴 |
public deleteItem ( |
||
$item | menu item instance | |
리턴 | boolean |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
리턴 | string |
public insert ( |
||
$menu | menu instance | |
리턴 |
public insertItem ( |
||
$item | menu item instance | |
리턴 |
public update ( |
||
$menu | menu instance | |
리턴 |
public updateItem ( |
||
$item | menu item instance | |
리턴 |
protected CacheInterface,Xpressengine\Support $cache | ||
리턴 | Xpressengine\Support\CacheInterface |