StatsContentRepositoryInterface
in
Interface StatsContentRepositoryInterface.
Tags
Table of Contents
Methods
- findStatContent() : StatsContent
- getChartData() : Collection
- getDeepStatistic() : array<string, mixed>
- getEmptyChartData() : array<string, mixed>
- getItemStatistic() : Collection
- getNowStats() : array<int, mixed>
- getSiteStatistic() : Collection
- getStatTypes() : array<string, mixed>
- logStat() : void
- toDateFormatByPeriod() : string
Methods
findStatContent()
public
findStatContent(string $entityType[, string|null $period = null ]) : StatsContent
Parameters
- $entityType : string
- $period : string|null = null
Return values
StatsContentgetChartData()
public
getChartData([array<string, mixed> $attributes = [] ]) : Collection
Parameters
- $attributes : array<string, mixed> = []
Return values
CollectiongetDeepStatistic()
public
getDeepStatistic() : array<string, mixed>
Return values
array<string, mixed>getEmptyChartData()
public
getEmptyChartData([string|null $period = null ]) : array<string, mixed>
Parameters
- $period : string|null = null
Return values
array<string, mixed>getItemStatistic()
public
getItemStatistic() : Collection
Return values
CollectiongetNowStats()
public
getNowStats(string|null $period[, string|null $group = null ]) : array<int, mixed>
Parameters
- $period : string|null
- $group : string|null = null
Return values
array<int, mixed>getSiteStatistic()
public
getSiteStatistic() : Collection
Return values
CollectiongetStatTypes()
public
getStatTypes([array<string|int, string> $excludes = [] ]) : array<string, mixed>
Parameters
- $excludes : array<string|int, string> = []
Return values
array<string, mixed>logStat()
public
logStat([string|null $period = '5m' ]) : void
Parameters
- $period : string|null = '5m'
toDateFormatByPeriod()
public
toDateFormatByPeriod(string $period, Carbon $date) : string
Parameters
- $period : string
- $date : Carbon