ScoresTotal
in package
uses
TraitCache, TraitData, TraitUser
FinalYes
Table of Contents
Properties
- $scoreMonth : int
- $nUserID : int
- $user : User
Methods
- __construct() : mixed
- getCacheInstance() : Cache
- getDataInstance() : Data
- getTotal() : array{'nPosts': int, 'strStarIcon': string, 'nScore': int, 'nScoreCount': int}
- Gibt das Scoring über einen selbst oder andere als Stern
- getUserInstance() : User
- adjustScoreCounts() : array<string|int, mixed>
- fetchUserScores() : array<string|int, mixed>
- getCntByResult() : array<string|int, mixed>
- getCntPosts() : int
Properties
$scoreMonth
public
int
$scoreMonth
= 18
$nUserID
private
int
$nUserID
$user
private
User
$user
Methods
__construct()
public
__construct([int $nUserID = 0 ]) : mixed
Parameters
- $nUserID : int = 0
getCacheInstance()
public
getCacheInstance() : Cache
Return values
CachegetDataInstance()
public
getDataInstance() : Data
Return values
DatagetTotal()
Gibt das Scoring über einen selbst oder andere als Stern
public
getTotal(string $strTable[, bool $isAboutMe = true ]) : array{'nPosts': int, 'strStarIcon': string, 'nScore': int, 'nScoreCount': int}
Seit 12.05. beschränkt auf 18 Monate
Parameters
- $strTable : string
- $isAboutMe : bool = true
Return values
array{'nPosts': int, 'strStarIcon': string, 'nScore': int, 'nScoreCount': int}getUserInstance()
public
getUserInstance() : User
Return values
UseradjustScoreCounts()
private
adjustScoreCounts(int|null $nRows, array<string|int, mixed> $naCnt) : array<string|int, mixed>
Parameters
- $nRows : int|null
- $naCnt : array<string|int, mixed>
Return values
array<string|int, mixed>fetchUserScores()
private
fetchUserScores(bool $isAboutMe, string $strTable) : array<string|int, mixed>
Parameters
- $isAboutMe : bool
- $strTable : string
Return values
array<string|int, mixed>getCntByResult()
private
getCntByResult(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
Return values
array<string|int, mixed>getCntPosts()
private
getCntPosts(string $strTable) : int
Parameters
- $strTable : string