Docs Goabase

GamesBoard
in package
uses TraitData, TraitDataWrite, TraitMemberLink

FinalYes

Table of Contents

Properties

$data  : Data
$game  : string
$memberLink  : MemberLink

Methods

__construct()  : mixed
getDataInstance()  : Data
getDataWriteInstance()  : DataWrite
getMemberLinkInstance()  : MemberLink
getScoreTable()  : string
openPage()  : void
findTopScoreIdForUser()  : int
formatGameScore()  : array<string|int, mixed>
getBestSelf()  : int
Get the highest ID for the user
getGameBox()  : string
getScoreRows()  : string
getScores()  : string
Just to get the score of the tetris game
getScoresRank()  : string
Show the ranking of one ID Used in x_get_data after the reached results
getTimeFromSec()  : string
getTotalFromUser()  : mixed
Total games from user
loadGameAssets()  : void

Properties

Methods

__construct()

public __construct([string $game = 'tetris' ]) : mixed
Parameters
$game : string = 'tetris'

getScoreTable()

public getScoreTable() : string
Return values
string

findTopScoreIdForUser()

private findTopScoreIdForUser() : int
Return values
int

formatGameScore()

private formatGameScore(mixed $row, string $tplScore) : array<string|int, mixed>
Parameters
$row : mixed
$tplScore : string
Return values
array<string|int, mixed>

getBestSelf()

Get the highest ID for the user

private getBestSelf() : int
Return values
int

getGameBox()

private getGameBox(array<string|int, mixed> $page) : string
Parameters
$page : array<string|int, mixed>
Return values
string

getScoreRows()

private getScoreRows(array<string|int, mixed> $result[, int $nID = 0 ]) : string
Parameters
$result : array<string|int, mixed>
$nID : int = 0
Return values
string

getScores()

Just to get the score of the tetris game

private getScores() : string
Return values
string
  • table

getScoresRank()

Show the ranking of one ID Used in x_get_data after the reached results

private getScoresRank(int $nID) : string
Parameters
$nID : int
Return values
string

getTimeFromSec()

private getTimeFromSec([int $nSeconds = 0 ]) : string
Parameters
$nSeconds : int = 0
Return values
string

getTotalFromUser()

Total games from user

private getTotalFromUser() : mixed

        
On this page

Search results