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

Public Member Functions

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

Static Public Member Functions

static Load ($idMatch=0, $idAccount=0, $returnArray=FALSE)
 
- 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 = "Match_Account"
 
 $Id = 0
 
 $IdMatch = 0
 
 $IdAccount = 0
 
 $CustomData = ""
 

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

This class handles the association of Matches to Accounts

Author
Skared Creations

Definition at line 10 of file GameMatch_Account.php.

Constructor & Destructor Documentation

◆ __construct()

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

Contructor

Definition at line 22 of file GameMatch_Account.php.

Member Function Documentation

◆ Delete()

Delete ( )

Delete the record from the database

Returns
boolean Returns TRUE on success

Definition at line 87 of file GameMatch_Account.php.

◆ Load()

static Load (   $idMatch = 0,
  $idAccount = 0,
  $returnArray = FALSE 
)
static

Load the accounts of a match

Parameters
int$idMatchFilter Match ID
int$idAccountFilter Account ID
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
[]

Definition at line 42 of file GameMatch_Account.php.

◆ Save()

Save ( )

Save the record in the database Database $Database

Returns
boolean Returns TRUE on success

Definition at line 56 of file GameMatch_Account.php.

◆ ToArray()

ToArray ( )

Definition at line 97 of file GameMatch_Account.php.

◆ ToJson()

ToJson ( )

Definition at line 109 of file GameMatch_Account.php.

Field Documentation

◆ $CustomData

$CustomData = ""

Definition at line 17 of file GameMatch_Account.php.

◆ $Id

$Id = 0

Definition at line 14 of file GameMatch_Account.php.

◆ $IdAccount

$IdAccount = 0

Definition at line 16 of file GameMatch_Account.php.

◆ $IdMatch

$IdMatch = 0

Definition at line 15 of file GameMatch_Account.php.

◆ TABLE_NAME

const TABLE_NAME = "Match_Account"

Definition at line 12 of file GameMatch_Account.php.