Combu Server
3.1.1
PHP API Documentation
|
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 ($idAccount) |
static | LoadAccount ($platformKey, $platformId, &$accountPlatform=NULL) |
static | LoadOrCreateAccount ($platformKey, $platformId, &$accountPlatform=NULL, &$justCreated=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 = "Account_Platform" |
$IdAccount = 0 | |
$PlatformKey = "" | |
$PlatformId = "" | |
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="") |
Handle the association of Account with Platforms (GameCenter, GooglePlay, Facebook and every other external platforms)
Definition at line 10 of file Account_Platform.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 21 of file Account_Platform.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 132 of file Account_Platform.php.
|
static |
Get the registered platform logins Database $Database
int | $idAccount | Filter IdAccount |
Definition at line 36 of file Account_Platform.php.
|
static |
Definition at line 42 of file Account_Platform.php.
|
static |
Load or create an account associated to the platform
string | $platformKey | The Platform Key (e.g.: "GameCenter", "GooglePlay", "Facebook", etc.) |
string | $platformId | The User Id returned by the Platform authentication |
string | $customData | The JSON string representation of an associative array for custom data |
\self | $accountPlatform | It is set with the loaded or created Account-Platform object Database $Database |
Definition at line 72 of file Account_Platform.php.
Save | ( | ) |
Save the record in the database
Definition at line 113 of file Account_Platform.php.
$IdAccount = 0 |
Definition at line 14 of file Account_Platform.php.
$PlatformId = "" |
Definition at line 16 of file Account_Platform.php.
$PlatformKey = "" |
Definition at line 15 of file Account_Platform.php.
const TABLE_NAME = "Account_Platform" |
Definition at line 12 of file Account_Platform.php.