Свойство | Type | Description | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Menu\MenuRepository | MenuRepository instance |
Méthode | 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 |
Méthode | Description | |
---|---|---|
getCacheKey ( string $keyword ) : string | String for cache key |
Méthode | 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 | |
Résultat |
public createModel ( ) : |
||
Résultat |
public deleteItem ( |
||
$item | menu item instance | |
Résultat | boolean |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
Résultat | string |
public insert ( |
||
$menu | menu instance | |
Résultat |
public insertItem ( |
||
$item | menu item instance | |
Résultat |
public update ( |
||
$menu | menu instance | |
Résultat |
public updateItem ( |
||
$item | menu item instance | |
Résultat |
protected CacheInterface,Xpressengine\Support $cache | ||
Résultat | Xpressengine\Support\CacheInterface |