MetaFox

StatsContentRepository extends AbstractRepository
in package
implements StatsContentRepositoryInterface

Class AbstractRepository.

Table of Contents

Interfaces

StatsContentRepositoryInterface
Interface StatsContentRepositoryInterface.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

buildQueryScopes()  : mixed
cleanContent()  : string|null
cleanTitle()  : string|null
collectStats()  : array<string|int, mixed>
createMany()  : bool
findStatContent()  : StatsContent
getChartData()  : Collection
getDeepStatistic()  : array<string, mixed>
getEmptyChartData()  : array<string, mixed>
getItemStatistic()  : Collection
getModel()  : StatsContent
getNowStats()  : array<int, mixed>
getSiteStatistic()  : Collection
getStatTypes()  : array<string, mixed>
getUserContractMorphTypeColumns()  : array<string|int, string>
hasSponsorView()  : bool
isNoSponsorView()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
logStat()  : void
model()  : mixed
recoverDayStat()  : void
recoverMonthStat()  : void
recoverWeekStat()  : void
recoverYearStat()  : void
toDateFormatByPeriod()  : string
where()  : $this
withUserMorphTypeActiveScope()  : self
parseNowPeriod()  : Carbon|null
Parsing period in human readable form into integer (in minutes).
parsePeriod()  : Carbon|null
Parsing period in human readable form into integer (in minutes).
getDayChartData()  : array<string, mixed>
getMonthChartData()  : array<string, mixed>
getWeekChartData()  : array<string, mixed>

Properties

Methods

buildQueryScopes()

public buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
$query : mixed
$model : mixed
$criteria : mixed

cleanContent()

public cleanContent(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

collectStats()

public collectStats(string|null $period, Carbon|null $after[, Carbon|null $before = null ][, string|null $group = null ]) : array<string|int, mixed>
Parameters
$period : string|null
$after : Carbon|null
$before : Carbon|null = null
$group : string|null = null
Return values
array<string|int, mixed>

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

getChartData()

public getChartData([array<string|int, mixed> $attributes = [] ]) : Collection
Parameters
$attributes : array<string|int, mixed> = []
Tags
inheritDoc
Return values
Collection

getDeepStatistic()

public getDeepStatistic() : array<string, mixed>
Tags
inheritDoc
Return values
array<string, mixed>

getEmptyChartData()

public getEmptyChartData([string|null $period = null ]) : array<string, mixed>
Parameters
$period : string|null = null
Tags
inheritDoc
Return values
array<string, mixed>

getItemStatistic()

public getItemStatistic() : Collection
Tags
inheritDoc
Return values
Collection

getNowStats()

public getNowStats(string|null $period[, string|null $group = null ]) : array<int, mixed>
Parameters
$period : string|null
$group : string|null = null
Tags
inheritDoc
Return values
array<int, mixed>

getStatTypes()

public getStatTypes([array<string|int, mixed> $excludes = [] ]) : array<string, mixed>
Parameters
$excludes : array<string|int, mixed> = []
Tags
inheritDoc
Return values
array<string, mixed>

getUserContractMorphTypeColumns()

public getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>

hasSponsorView()

public hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
$attributes : array<string|int, mixed>
Return values
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

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
Return values
string

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

parseNowPeriod()

Parsing period in human readable form into integer (in minutes).

protected parseNowPeriod(string|null $period) : Carbon|null
Parameters
$period : string|null
Return values
Carbon|null

parsePeriod()

Parsing period in human readable form into integer (in minutes).

protected parsePeriod(string|null $period) : Carbon|null
Parameters
$period : string|null
Return values
Carbon|null

getDayChartData()

private getDayChartData() : array<string, mixed>
Return values
array<string, mixed>

getMonthChartData()

private getMonthChartData() : array<string, mixed>
Return values
array<string, mixed>

getWeekChartData()

private getWeekChartData() : array<string, mixed>
Return values
array<string, mixed>

        
On this page

Search results