Property | Type | Description | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
getCacheKey ( string $keyword ) : string | String for cache key |
Method | Description | |
---|---|---|
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 | |
return |
public createModel ( ) : |
||
return |
public deleteItem ( |
||
$item | menu item instance | |
return | boolean |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
return | string |
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 |
protected CacheInterface,Xpressengine\Support $cache | ||
return | Xpressengine\Support\CacheInterface |