Свойство | Тип | Описание | |
---|---|---|---|
$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 |