ReportInterface
in
Report interface
Table of Contents
Constants
- CALC_PERIOD_ALL = 'all'
- CALC_PERIOD_DAILY = 'daily'
- CALC_PERIOD_MONTHLY = 'monthly'
- CALC_PERIOD_WEEKLY = 'weekly'
- CALC_PERIOD_YEARLY = 'yearly'
- CALC_TYPE_AVG = 'avg'
- CALC_TYPE_COUNT = 'count'
- CALC_TYPE_CUSTOM = 'custom'
- CALC_TYPE_SINGLE_VALUE = 'single'
- CALC_TYPE_SUM = 'sum'
Methods
- getReportData() : array<string|int, mixed>
- Get report data
Constants
CALC_PERIOD_ALL
public
mixed
CALC_PERIOD_ALL
= 'all'
CALC_PERIOD_DAILY
public
mixed
CALC_PERIOD_DAILY
= 'daily'
CALC_PERIOD_MONTHLY
public
mixed
CALC_PERIOD_MONTHLY
= 'monthly'
CALC_PERIOD_WEEKLY
public
mixed
CALC_PERIOD_WEEKLY
= 'weekly'
CALC_PERIOD_YEARLY
public
mixed
CALC_PERIOD_YEARLY
= 'yearly'
CALC_TYPE_AVG
public
mixed
CALC_TYPE_AVG
= 'avg'
CALC_TYPE_COUNT
public
mixed
CALC_TYPE_COUNT
= 'count'
CALC_TYPE_CUSTOM
public
mixed
CALC_TYPE_CUSTOM
= 'custom'
CALC_TYPE_SINGLE_VALUE
public
mixed
CALC_TYPE_SINGLE_VALUE
= 'single'
CALC_TYPE_SUM
public
mixed
CALC_TYPE_SUM
= 'sum'
Methods
getReportData()
Get report data
public
getReportData(string $period[, int|null $day = null ][, int|null $month = null ][, int|null $year = null ]) : array<string|int, mixed>
Parameters
- $period : string
- $day : int|null = null
- $month : int|null = null
- $year : int|null = null