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, $returnArray=false) |
static | LoadOrCreate ($idAccount, $itemName, $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 = "Inventory" |
$Id = 0 | |
$IdAccount = 0 | |
$IdApp = 0 | |
$Name = "" | |
$Quantity = 0 | |
$CustomData = "" | |
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 Inventory items
Definition at line 10 of file Inventory.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 24 of file Inventory.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 121 of file Inventory.php.
|
static |
Get the registered inventory items
string | $idAccount | Filter IdAccount |
boolean | $returnArray | If TRUE then it will return associative arrays else objects AppId $AppId |
Definition at line 48 of file Inventory.php.
|
static |
Get the registered inventory item or create it now $Database $AppId
type | $idAccount | |
type | $itemName | |
type | $returnArray |
Definition at line 66 of file Inventory.php.
|
static |
Delete all records associated to this class
Definition at line 131 of file Inventory.php.
Save | ( | ) |
Save the record in the database $Database $AppId
Definition at line 90 of file Inventory.php.
$CustomData = "" |
Definition at line 19 of file Inventory.php.
$Id = 0 |
Definition at line 14 of file Inventory.php.
$IdAccount = 0 |
Definition at line 15 of file Inventory.php.
$IdApp = 0 |
Definition at line 16 of file Inventory.php.
$Name = "" |
Definition at line 17 of file Inventory.php.
$Quantity = 0 |
Definition at line 18 of file Inventory.php.
const TABLE_NAME = "Inventory" |
Definition at line 12 of file Inventory.php.