Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
__construct ($src=null, $stripSlashes=false) | |
Save () | |
UpdateLastAction () | |
Delete () | |
Public Member Functions inherited from DataClass | |
Save () | |
Delete () | |
ToJson () | |
ToArray () | |
Static Public Member Functions | |
static | Load ($idAccount=0, $fromDate=NULL, $toDate=NULL, $idApp=0, $ipAddress=NULL, $limit=NULL, $offset=NULL, &$count=NULL) |
static | ClearSessions ($idAccount, $deleteAll=FALSE) |
static | GetLastSession ($idAccount) |
static | SetSession ($idAccount, $token) |
static | UnsetSession ($idAccount, $token) |
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 = "SessionToken" |
$Token = "" | |
$IdApp = 0 | |
$IPAddress = "" | |
$Created = "" | |
$RSA_PrivateKey = "" | |
$RSA_PublicKey = "" | |
$AES_Key = "" | |
$AES_IV = "" | |
$IdAccount = 0 | |
$ClientVersion = "" | |
$Updated = "" | |
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 session tokens
Definition at line 10 of file SessionToken.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 29 of file SessionToken.php.
|
static |
Delete older sessions of this player
int | $idAccount | IdAccount Database $Database |
Definition at line 134 of file SessionToken.php.
Delete | ( | ) |
Delete the record from the database Database $Database
Definition at line 219 of file SessionToken.php.
|
static |
Get the last session of an account
$AppId Current AppId as web service
int | $idAccount | Account Id |
Definition at line 159 of file SessionToken.php.
|
static |
Get the registered news
Database $Database
int | $idAccount | Filter IdAccount |
string | $fromDate | Filter Created (range start) |
string | $toDate | Filter Created (range end) |
int | $idApp | Filter IdApp |
string | $ipAddress | Filter IPAddress |
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 |
Definition at line 57 of file SessionToken.php.
|
static |
Delete all records associated to this class
Definition at line 230 of file SessionToken.php.
Save | ( | ) |
Save the record in the database
Database $Database
Definition at line 84 of file SessionToken.php.
|
static |
Set an account to a session
$Database
int | $idAccount | Account Id |
string | $token | Token |
Definition at line 180 of file SessionToken.php.
|
static |
Delete a session of an account
$Database
int | $idAccount | Account Id |
string | $token | Token |
Definition at line 201 of file SessionToken.php.
UpdateLastAction | ( | ) |
Updates the last action datetime
Database $Database
Definition at line 116 of file SessionToken.php.
$AES_IV = "" |
Definition at line 21 of file SessionToken.php.
$AES_Key = "" |
Definition at line 20 of file SessionToken.php.
$ClientVersion = "" |
Definition at line 23 of file SessionToken.php.
$Created = "" |
Definition at line 17 of file SessionToken.php.
$IdAccount = 0 |
Definition at line 22 of file SessionToken.php.
$IdApp = 0 |
Definition at line 15 of file SessionToken.php.
$IPAddress = "" |
Definition at line 16 of file SessionToken.php.
$RSA_PrivateKey = "" |
Definition at line 18 of file SessionToken.php.
$RSA_PublicKey = "" |
Definition at line 19 of file SessionToken.php.
$Token = "" |
Definition at line 14 of file SessionToken.php.
$Updated = "" |
Definition at line 24 of file SessionToken.php.
const TABLE_NAME = "SessionToken" |
Definition at line 12 of file SessionToken.php.