Docs Goabase

GamesBoard
in package
uses TraitDataWrite, TraitMemberLink

Table of Contents

Properties

$game  : string
$memberLink  : MemberLink

Methods

__construct()  : mixed
ajaxUpdateAndGetScore()  : string
getDataWriteInstance()  : DataWrite
getHighScore()  : int
Picks high score
getMemberLinkInstance()  : MemberLink
openPage()  : 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
getScoreTable()  : string
getTimeFromSec()  : string
getTotalFromUser()  : mixed
Total games from user
parseGameData()  : array<string|int, mixed>|array<string|int, int>

Properties

Methods

__construct()

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

ajaxUpdateAndGetScore()

public ajaxUpdateAndGetScore() : string
Tags
throws
Exception
Return values
string

getHighScore()

Picks high score

public getHighScore() : int
Return values
int

openPage()

public openPage(array<string|int, mixed> $pageData, HtmlHeader $htmlHeader) : array<string|int, mixed>
Parameters
$pageData : array<string|int, mixed>
$htmlHeader : HtmlHeader
Tags
throws
RandomException
throws
Exception
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>
Tags
throws
Exception
Return values
string

getScoreRows()

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

getScores()

Just to get the score of the tetris game

private getScores() : string
Tags
throws
Exception
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
Tags
throws
Exception
Return values
string

getScoreTable()

private getScoreTable() : string
Tags
throws
Exception
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

parseGameData()

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

        
On this page

Search results