ReportsManager
in package
Class ReportsManager
Tags
Table of Contents
- ICON_GRAPH = 'graph'
- ICON_REPORT_CHART = 'chart'
- ICON_REPORT_DOC = 'file-presentation'
- ICON_REPORT_TABLE = 'file-spreadsheet'
- ICON_TABLE = 'table'
- OPTION_DESCRIPTION = 'description'
- OPTION_ICON = 'icon'
- $adminMenuManager : MenuManager
- $groups : array<string|int, mixed>
- $items : array<string|int, mixed>
- __construct() : mixed
- ReportsManager constructor.
- registerGroup() : mixed
- Register report group
- registerItem() : bool
- Register report item
- tree() : array<string|int, mixed>
- Дерево для дальнейшей отрисовки
- sort() : mixed
- Сортировка по полю order
Constants
ICON_GRAPH
public
mixed
ICON_GRAPH
= 'graph'
ICON_REPORT_CHART
public
mixed
ICON_REPORT_CHART
= 'chart'
ICON_REPORT_DOC
public
mixed
ICON_REPORT_DOC
= 'file-presentation'
ICON_REPORT_TABLE
public
mixed
ICON_REPORT_TABLE
= 'file-spreadsheet'
ICON_TABLE
public
mixed
ICON_TABLE
= 'table'
OPTION_DESCRIPTION
public
mixed
OPTION_DESCRIPTION
= 'description'
OPTION_ICON
public
mixed
OPTION_ICON
= 'icon'
Properties
$adminMenuManager
private
MenuManager
$adminMenuManager
$groups
private
array<string|int, mixed>
$groups
= []
$items
private
array<string|int, mixed>
$items
= []
Methods
__construct()
ReportsManager constructor.
public
__construct(MenuManager $adminMenuManager) : mixed
Parameters
- $adminMenuManager : MenuManager
Return values
mixed —registerGroup()
Register report group
public
registerGroup(string $code, string $title[, int $order = 10 ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $code : string
- $title : string
- $order : int = 10
- $options : array<string|int, mixed> = []
Tags
Return values
mixed —registerItem()
Register report item
public
registerItem(string $title, string $url[, string|null $group_code = null ][, int $order = 10 ][, array<string|int, mixed> $options = [] ][, array<string|int, mixed> $params = [] ]) : bool
Options: icon
Parameters
- $title : string
-
Title
- $url : string
-
Presenter action scheme
- $group_code : string|null = null
-
Group code
- $order : int = 10
-
Order
- $options : array<string|int, mixed> = []
-
Options
- $params : array<string|int, mixed> = []
-
Parameters
Return values
bool —Is success
tree()
Дерево для дальнейшей отрисовки
public
tree() : array<string|int, mixed>
Return values
array<string|int, mixed> —sort()
Сортировка по полю order
private
static sort(array<string|int, mixed> &$data) : mixed
Parameters
- $data : array<string|int, mixed>