Docs Goabase

Scores
in package
uses TraitMemberLink, TraitData

Read onlyYes
FinalYes

Table of Contents

Properties

$nUserID  : int
$data  : Data
$env  : array<string|int, mixed>
$memberLink  : MemberLink

Methods

__construct()  : mixed
getBox()  : string
Vote-Score-Elemente Wird pro Eintrag eingebunden, der gescort werden darf
getByUser()  : string
Returns small html list of top ten scorer for another user
getDataInstance()  : Data
getEntry()  : array{nScore: string, strScoreClass: string, nCount: string, bScoreExist: bool}
Liefert den Score, Anzahl Vote und die css-klasse zum Record
getMemberLinkInstance()  : MemberLink
getOfMember()  : array{id: int, score: int}
Gibt ID und Score des Users zurück
getScoreTable()  : string
Get's sql table for the box
fetchScoreData()  : array<string|int, mixed>
getOutput()  : string
Fills the template
getTableScore()  : string
defined ajax-actions, key = tbl-name, val = action

Properties

$env

private array<string|int, mixed> $env

Methods

__construct()

public __construct() : mixed

getBox()

Vote-Score-Elemente Wird pro Eintrag eingebunden, der gescort werden darf

public getBox(string $strVoteBox, int $nRecordID, int $nOwnerID[, bool $doVote = true ]) : string
Parameters
$strVoteBox : string
$nRecordID : int
$nOwnerID : int
$doVote : bool = true
Return values
string

getByUser()

Returns small html list of top ten scorer for another user

public getByUser([string $table = '' ][, int $score = 1 ][, int $userId = 0 ][, bool $get = false ]) : string
Parameters
$table : string = ''
  • default 'forum'
$score : int = 1
  • if not set, we count -1
$userId : int = 0
  • if not set the user_id from session
$get : bool = false
  • the points we get (true) or given them (false)
Return values
string

getEntry()

Liefert den Score, Anzahl Vote und die css-klasse zum Record

public getEntry(string $strScoreTable, int $nRecordID) : array{nScore: string, strScoreClass: string, nCount: string, bScoreExist: bool}
Parameters
$strScoreTable : string
  • name der tabelle
$nRecordID : int
  • record aus dieser tabelle
Return values
array{nScore: string, strScoreClass: string, nCount: string, bScoreExist: bool}

getOfMember()

Gibt ID und Score des Users zurück

public getOfMember(mixed $strScoreTable, mixed $nRecordID) : array{id: int, score: int}
Parameters
$strScoreTable : mixed
  • Name der Tabelle, für die gevoted wurde (z.b. "forum")
$nRecordID : mixed
  • id des records der tabelle
Return values
array{id: int, score: int}

getScoreTable()

Get's sql table for the box

public getScoreTable(string $strVoteBox) : string
Parameters
$strVoteBox : string
Return values
string

fetchScoreData()

private fetchScoreData(string $strScoreTable, int $nRecordID) : array<string|int, mixed>
Parameters
$strScoreTable : string
$nRecordID : int
Return values
array<string|int, mixed>

getOutput()

Fills the template

private getOutput(array<string|int, mixed> $scorer, array<string|int, mixed> $cnt, string $star) : string
Parameters
$scorer : array<string|int, mixed>
$cnt : array<string|int, mixed>
$star : string
Return values
string

getTableScore()

defined ajax-actions, key = tbl-name, val = action

private getTableScore(string $strScoreTable) : string
Parameters
$strScoreTable : string
Return values
string

        
On this page

Search results