Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
__construct ($src=null, $stripSlashes=false) | |
Save () | |
Delete () | |
CheckFinished () | |
ToArray () | |
ToJson () | |
Public Member Functions inherited from DataClass | |
Save () | |
Delete () | |
ToJson () | |
ToArray () | |
Static Public Member Functions | |
static | Load ($idTournament=0, $idUser=0, $activeOnly=FALSE, $title="", $customData=array(), $order=NULL, $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 = "Match" |
$Id = 0 | |
$IdTournament = 0 | |
$Title = "" | |
$DateCreation = NULL | |
$DateExpire = NULL | |
$Rounds = 0 | |
$Finished = 0 | |
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="") |
Class to handle Matches
Definition at line 10 of file GameMatch.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 25 of file GameMatch.php.
CheckFinished | ( | ) |
Check if all the scores have been sent
Definition at line 159 of file GameMatch.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 130 of file GameMatch.php.
|
static |
Load matches corresponding to the filters Database $Database
int | $idTournament | Filter IdTournament |
boolean | $activeOnly | Load only in progress matches, not expired |
string | $title | Filter Title as REGEXP |
array | $customData | Filter CustomData (must be an array of associative arrays: [{"key1":"value"},{"key2":"value"}]) |
string | $order | |
int | $limit | Max number of results (for paged results) |
int | $offset | Offset number of results (for paged results) |
int | $count | Will be set to the total count of results |
bool | $returnArray | If TRUE then it will return associative arrays else objects |
Definition at line 52 of file GameMatch.php.
|
static |
Delete all records associated to this class $Database
Definition at line 149 of file GameMatch.php.
Save | ( | ) |
Save the record in the database Database $Database
Definition at line 97 of file GameMatch.php.
ToArray | ( | ) |
Definition at line 182 of file GameMatch.php.
ToJson | ( | ) |
Definition at line 200 of file GameMatch.php.
$DateCreation = NULL |
Definition at line 17 of file GameMatch.php.
$DateExpire = NULL |
Definition at line 18 of file GameMatch.php.
$Finished = 0 |
Definition at line 20 of file GameMatch.php.
$Id = 0 |
Definition at line 14 of file GameMatch.php.
$IdTournament = 0 |
Definition at line 15 of file GameMatch.php.
$Rounds = 0 |
Definition at line 19 of file GameMatch.php.
$Title = "" |
Definition at line 16 of file GameMatch.php.
const TABLE_NAME = "Match" |
Definition at line 12 of file GameMatch.php.