Combu Server  3.1.1
PHP API Documentation
Public Member Functions | Static Public Member Functions | Data Fields
LeaderBoard_User Class Reference
Inheritance diagram for LeaderBoard_User:
DataClass

Public Member Functions

 __construct ($src=null, $stripSlashes=false)
 
 Save ()
 
 Delete ()
 
- Public Member Functions inherited from DataClass
 Save ()
 
 Delete ()
 
 ToJson ()
 
 ToArray ()
 

Static Public Member Functions

static LoadAccount ($idAccount, $idLeaderboard=0, $returnArray=false)
 
static Load ($idLeaderboard, $order, $limit=null, $offset=null, &$count=null, $returnArray=false)
 
static Prune ()
 
- Static Public Member Functions inherited from DataClass
static GetTableName ($class)
 
static LoadRecords ($query, $returnedClass="")
 
static CountRecords ($tableName, $filter=null)
 
static TruncateTable ($tableName)
 
static TruncateClass ($class)
 

Data Fields

const TABLE_NAME = "LeaderBoard_User"
 
 $Id = 0
 
 $IdLeaderboard = 0
 
 $IdAccount = 0
 
 $Username = ""
 
 $ValueInt = 0
 
 $ValueFloat = 0
 
 $ValueString = ""
 
 $LastUpdated = ""
 

Additional Inherited Members

- Protected Member Functions inherited from DataClass
 _loadFilter ($tableName, $filter)
 
 _loadByRow ($row, $stripSlashes=false, $callbackOnExists=false)
 
 _Delete ($tableName, $filter=null)
 
- Static Protected Member Functions inherited from DataClass
static _count ($tableName, $filter=null)
 
static _load ($tableName, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null)
 
static _loadEx ($select, $from, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null, $debug=false)
 
static _loadQuery ($query, $returnedClass="")
 

Detailed Description

Class to handle LeaderBoard User Records

Author
Skared Creations

Definition at line 10 of file LeaderBoard_User.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $src = null,
  $stripSlashes = false 
)

Contructor

Definition at line 26 of file LeaderBoard_User.php.

Member Function Documentation

◆ Delete()

Delete ( )

Delete the record from the database

Returns
bool Returns TRUE on success

Definition at line 108 of file LeaderBoard_User.php.

◆ Load()

static Load (   $idLeaderboard,
  $order,
  $limit = null,
  $offset = null,
$count = null,
  $returnArray = false 
)
static

Get the registered scores

Parameters
string$idLeaderboardFilter IdLeaderboard
string$orderOrder statement (without 'ORDER BY')
int$limitMax number of results (for paged results)
int$offsetOffset number of results (for paged results)
int$countWill be set to the total count of results
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
array Returns the array of records

Definition at line 64 of file LeaderBoard_User.php.

◆ LoadAccount()

static LoadAccount (   $idAccount,
  $idLeaderboard = 0,
  $returnArray = false 
)
static

Get the registered scores

Parameters
string$idAccountFilter IdAccount
string$idLeaderboardFilter IdLeaderboard
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
array Returns the array of records

Definition at line 46 of file LeaderBoard_User.php.

◆ Prune()

static Prune ( )
static

Delete all records associated to this class $Database

Definition at line 118 of file LeaderBoard_User.php.

◆ Save()

Save ( )

Save the record in the database

Returns
bool Returns TRUE on success

Definition at line 74 of file LeaderBoard_User.php.

Field Documentation

◆ $Id

$Id = 0

Definition at line 14 of file LeaderBoard_User.php.

◆ $IdAccount

$IdAccount = 0

Definition at line 16 of file LeaderBoard_User.php.

◆ $IdLeaderboard

$IdLeaderboard = 0

Definition at line 15 of file LeaderBoard_User.php.

◆ $LastUpdated

$LastUpdated = ""

Definition at line 21 of file LeaderBoard_User.php.

◆ $Username

$Username = ""

Definition at line 17 of file LeaderBoard_User.php.

◆ $ValueFloat

$ValueFloat = 0

Definition at line 19 of file LeaderBoard_User.php.

◆ $ValueInt

$ValueInt = 0

Definition at line 18 of file LeaderBoard_User.php.

◆ $ValueString

$ValueString = ""

Definition at line 20 of file LeaderBoard_User.php.

◆ TABLE_NAME

const TABLE_NAME = "LeaderBoard_User"

Definition at line 12 of file LeaderBoard_User.php.