Combu Server  3.1.1
PHP API Documentation
Public Member Functions | Static Public Member Functions | Data Fields
Tournament_CustomData Class Reference
Inheritance diagram for Tournament_CustomData:
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 Load ($idTournament, $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 = "Tournament_CustomData"
 
 $IdTournament = 0
 
 $DataKey = ""
 
 $DataValue = ""
 

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 Match Custom Data

Author
Skared Creations

Definition at line 10 of file Tournament_CustomData.php.

Constructor & Destructor Documentation

◆ __construct()

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

Contructor

Definition at line 21 of file Tournament_CustomData.php.

Member Function Documentation

◆ Delete()

Delete ( )

Delete the record from the database Database $Database

Returns
boolean Returns TRUE on success

Definition at line 62 of file Tournament_CustomData.php.

◆ Load()

static Load (   $idTournament,
  $returnArray = false 
)
static

Get the registered custom data

Parameters
string$idTournamentFilter IdTournament
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
[]

Definition at line 37 of file Tournament_CustomData.php.

◆ Save()

Save ( )

Save the record in the database

Returns
bool Returns TRUE on success

Definition at line 47 of file Tournament_CustomData.php.

Field Documentation

◆ $DataKey

$DataKey = ""

Definition at line 15 of file Tournament_CustomData.php.

◆ $DataValue

$DataValue = ""

Definition at line 16 of file Tournament_CustomData.php.

◆ $IdTournament

$IdTournament = 0

Definition at line 14 of file Tournament_CustomData.php.

◆ TABLE_NAME

const TABLE_NAME = "Tournament_CustomData"

Definition at line 12 of file Tournament_CustomData.php.