AdminMenuService
in package
Class AdminMenuService
Table of Contents
- $processor : MenuProcessor
- $repository : AdminMenuCacheRepository
- $selectedAdminPage : string|null
- __construct() : mixed
- AdminMenuService constructor.
- changeSelectedAdminPage() : void
- deleteMenuCache() : void
- Deletes all cache data of the admin menu.
- getAdminMenu() : array<string|int, mixed>
- Returns the finalized gambio admin menu structure.
- getAdminMenuCache() : array<string|int, mixed>
- Returns the admin menu cache.
Properties
$processor
private
MenuProcessor
$processor
$repository
private
AdminMenuCacheRepository
$repository
$selectedAdminPage
private
string|null
$selectedAdminPage
Methods
__construct()
AdminMenuService constructor.
public
__construct(AdminMenuCacheRepository $repository, MenuProcessor $processor) : mixed
Parameters
- $repository : AdminMenuCacheRepository
- $processor : MenuProcessor
Return values
mixed —changeSelectedAdminPage()
public
changeSelectedAdminPage(string $adminPage) : void
Parameters
- $adminPage : string
Return values
void —deleteMenuCache()
Deletes all cache data of the admin menu.
public
deleteMenuCache() : void
Return values
void —getAdminMenu()
Returns the finalized gambio admin menu structure.
public
getAdminMenu() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAdminMenuCache()
Returns the admin menu cache.
private
getAdminMenuCache() : array<string|int, mixed>
If no cache data exists, new cache data will be created.