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 ($finished=FALSE, $title=NULL, $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 = "Tournament" |
$Id = 0 | |
$IdOwner = 0 | |
$Title = "" | |
$DateCreation = NULL | |
$DateFinished = NULL | |
$CustomData = "" | |
$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 Tournaments
Definition at line 10 of file Tournament.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 25 of file Tournament.php.
CheckFinished | ( | ) |
Check if all the matches are finished
Definition at line 145 of file Tournament.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 117 of file Tournament.php.
|
static |
Load matches corresponding to the filters Database $Database
boolean | $finished | Filter Finished |
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 51 of file Tournament.php.
|
static |
Delete all records associated to this class $Database
Definition at line 136 of file Tournament.php.
Save | ( | ) |
Save the record in the database Database $Database
Definition at line 86 of file Tournament.php.
ToArray | ( | ) |
Definition at line 160 of file Tournament.php.
ToJson | ( | ) |
Definition at line 183 of file Tournament.php.
$CustomData = "" |
Definition at line 19 of file Tournament.php.
$DateCreation = NULL |
Definition at line 17 of file Tournament.php.
$DateFinished = NULL |
Definition at line 18 of file Tournament.php.
$Finished = 0 |
Definition at line 20 of file Tournament.php.
$Id = 0 |
Definition at line 14 of file Tournament.php.
$IdOwner = 0 |
Definition at line 15 of file Tournament.php.
$Title = "" |
Definition at line 16 of file Tournament.php.
const TABLE_NAME = "Tournament" |
Definition at line 12 of file Tournament.php.