Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
__construct ($src=null, $stripSlashes=false) | |
Save () | |
Delete () | |
ToArray () | |
ToJson () | |
Public Member Functions inherited from DataClass | |
Save () | |
Delete () | |
ToJson () | |
ToArray () | |
Static Public Member Functions | |
static | Load ($idAccount=0, $idSender=0, $idGroup=0, $unread=FALSE, $limit=null, $offset=null, &$count=null, $returnArray=false) |
static | LoadUnread ($idAccount, $idSenders=array(), $idGroups=array(), $returnArray=false) |
static | LoadConversations ($idAccount) |
static | LoadConversationMessages ($myAccount, $otherAccount, $idGroup, $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 = "Mail" |
$Id = 0 | |
$IdAccount = 0 | |
$IdGroup = 0 | |
$IdSender = 0 | |
$IsPublic = 0 | |
$SendDate = "" | |
$ReadDate = "" | |
$Subject = "" | |
$Message = "" | |
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 in-game Mail
Definition at line 10 of file GameMail.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 27 of file GameMail.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 173 of file GameMail.php.
|
static |
Get the registered messages
int | $idAccount | Filter IdAccount (recipient) |
int | $idSender | Filter IdSender (sender) |
int | $idGroup | Filter IdGroup (multiple recipients) |
boolean | $unread | Filter unread |
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 |
boolean | $returnArray | If TRUE then it will return associative arrays else objects |
Definition at line 53 of file GameMail.php.
|
static |
Get the registered messages
int | $myAccount | Filter the owner account Id of the request (recipient or sender) |
int | $idGroup | Filter IdGroup (multiple recipients) |
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 |
boolean | $returnArray | If TRUE then it will return associative arrays else objects |
Definition at line 120 of file GameMail.php.
|
static |
Get the conversations senders as array of users and groups
int | $idAccount |
Definition at line 89 of file GameMail.php.
|
static |
Get the messages sent to a user marked as unread
int | $idAccount | Filter the recipient |
Definition at line 75 of file GameMail.php.
|
static |
Delete all records associated to this class
Definition at line 182 of file GameMail.php.
Save | ( | ) |
Save the record in the database Database $Database
Definition at line 137 of file GameMail.php.
ToArray | ( | ) |
Definition at line 186 of file GameMail.php.
ToJson | ( | ) |
Definition at line 199 of file GameMail.php.
$Id = 0 |
Definition at line 14 of file GameMail.php.
$IdAccount = 0 |
Definition at line 15 of file GameMail.php.
$IdGroup = 0 |
Definition at line 16 of file GameMail.php.
$IdSender = 0 |
Definition at line 17 of file GameMail.php.
$IsPublic = 0 |
Definition at line 18 of file GameMail.php.
$Message = "" |
Definition at line 22 of file GameMail.php.
$ReadDate = "" |
Definition at line 20 of file GameMail.php.
$SendDate = "" |
Definition at line 19 of file GameMail.php.
$Subject = "" |
Definition at line 21 of file GameMail.php.
const TABLE_NAME = "Mail" |
Definition at line 12 of file GameMail.php.