Combu Server  3.1.1
PHP API Documentation
Public Member Functions | Static Public Member Functions | Data Fields
Account_App Class Reference
Inheritance diagram for Account_App:
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 Exists ($idAccount, $idApp, &$record=NULL)
 
static InsertOrUpdate ($idAccount, $idApp)
 
static Load ($limit=null, $offset=null, &$count=null, $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 = "Account_App"
 
 $IdAccount = 0
 
 $IdApp = 0
 
 $DateCreated = ""
 
 $DateUpdated = ""
 

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 connection between Account and AppId

Author
Skared Creations

Definition at line 10 of file Account_App.php.

Constructor & Destructor Documentation

◆ __construct()

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

Contructor Database $Database

Definition at line 23 of file Account_App.php.

Member Function Documentation

◆ Delete()

Delete ( )

Delete the record from the database Database $Database

Returns
bool Returns TRUE on success

Definition at line 114 of file Account_App.php.

◆ Exists()

static Exists (   $idAccount,
  $idApp,
$record = NULL 
)
static

Check whether exists a registration for an Account to an App $Database

Parameters
int$idAccount
int$idApp
\self$record
Returns
boolean

Definition at line 42 of file Account_App.php.

◆ InsertOrUpdate()

static InsertOrUpdate (   $idAccount,
  $idApp 
)
static

Check if the current Name already exists Database $Database

Returns
boolean Returns TRUE if Name exists

Definition at line 62 of file Account_App.php.

◆ Load()

static Load (   $limit = null,
  $offset = null,
$count = null,
  $returnArray = false 
)
static

Get the registered news

Parameters
int$limitMax number of results (for paged results)
int$offsetOffset number of results (for paged results)
int$countWill be set to the total count of results
boolean$returnArrayIf TRUE then it will return associative arrays else objects
Returns
array Returns the array of records

Definition at line 85 of file Account_App.php.

◆ Save()

Save ( )

Save the record in the database Database $Database

Returns
bool Returns TRUE on success

Definition at line 94 of file Account_App.php.

Field Documentation

◆ $DateCreated

$DateCreated = ""

Definition at line 16 of file Account_App.php.

◆ $DateUpdated

$DateUpdated = ""

Definition at line 17 of file Account_App.php.

◆ $IdAccount

$IdAccount = 0

Definition at line 14 of file Account_App.php.

◆ $IdApp

$IdApp = 0

Definition at line 15 of file Account_App.php.

◆ TABLE_NAME

const TABLE_NAME = "Account_App"

Definition at line 12 of file Account_App.php.