![]() |
Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
| __construct ($src=null, $stripSlashes=false) | |
| ExistsUsername () | |
| IsLogged () | |
| Save () | |
| Delete () | |
| ToJson () | |
Public Member Functions inherited from DataClass | |
| Save () | |
| Delete () | |
| ToJson () | |
| ToArray () | |
Static Public Member Functions | |
| static | Load ($username="", $limit=null, $offset=null, &$count=null, $returnArray=false) |
| static | CheckLogin ($username, $password, &$account=null) |
| static | GetSession () |
| static | SetSession (&$account) |
| static | UnsetSession () |
| static | Logout () |
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 = "AdminAccount" |
| $Id = 0 | |
| $Username = "" | |
| $Password = "" | |
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="") |
Definition at line 5 of file AdminAccount.php.
| __construct | ( | $src = null, |
|
$stripSlashes = false |
|||
| ) |
Contructor
Definition at line 16 of file AdminAccount.php.
|
static |
Check if specified login data are correct and the account is active
| string | $username | Username |
| string | $password | Password |
| int | &$id | Is set to the Id of the found account |
Definition at line 87 of file AdminAccount.php.
| Delete | ( | ) |
Delete the record from the database
Definition at line 175 of file AdminAccount.php.
| ExistsUsername | ( | ) |
Check if the current Username already exists
Definition at line 37 of file AdminAccount.php.
|
static |
Returns the account that is currently logged
Definition at line 107 of file AdminAccount.php.
| IsLogged | ( | ) |
Verify if this account is logged
Definition at line 56 of file AdminAccount.php.
|
static |
Get the registered accounts
| string | $username | Filter Username initial |
| 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 it is TRUE then the function returns an associative array, else it returns an array of Account objects |
Definition at line 71 of file AdminAccount.php.
|
static |
Log off this account
Definition at line 138 of file AdminAccount.php.
| Save | ( | ) |
Save the record in the database
Definition at line 147 of file AdminAccount.php.
|
static |
Set the specified account as currently logged
Definition at line 118 of file AdminAccount.php.
| ToJson | ( | ) |
Definition at line 181 of file AdminAccount.php.
|
static |
Set the specified account as not currently logged
Definition at line 129 of file AdminAccount.php.
| $Id = 0 |
Definition at line 9 of file AdminAccount.php.
| $Password = "" |
Definition at line 11 of file AdminAccount.php.
| $Username = "" |
Definition at line 10 of file AdminAccount.php.
| const TABLE_NAME = "AdminAccount" |
Definition at line 7 of file AdminAccount.php.
1.8.14