class for storing changes when shard is offline.
More...
List of all members.
Public Member Functions |
| __construct () |
| A constructor.
|
| set ($values) |
| sets the object's attributes.
|
| load_With_SID ($id) |
| loads the object's attributes.
|
| update () |
| updates the entry.
|
| getSID () |
| get SID attribute of the object.
|
| getType () |
| get type attribute of the object.
|
| getQuery () |
| get query attribute of the object.
|
| getDb () |
| get db attribute of the object.
|
| setSID ($s) |
| set SID attribute of the object.
|
| setType ($t) |
| set type attribute of the object.
|
| setQuery ($q) |
| set query attribute of the object.
|
| setDb ($d) |
| set db attribute of the object.
|
Private Attributes |
| $SID |
| The queries ID.
|
| $type |
| The type of query.
|
| $query |
| The query itself (json encoded)
|
| $db |
| the db where the query should be performed
|
Detailed Description
class for storing changes when shard is offline.
- Todo:
- make sure that the querycache class is being used by the sync class and also for inserting the queries themselfs into it. Atm this class isn't used yet if I remember correctly
- Author:
- Daan Janssens, mentored by Matthew Lagoe
Constructor & Destructor Documentation
A constructor.
Empty constructor
Member Function Documentation
loads the object's attributes.
loads the object's attributes by giving a SID as parameter
- Parameters:
-
$id | the id of the querycaches row |
sets the object's attributes.
- Parameters:
-
$values | should be an array of the form array('SID' => sid, 'type' => type, 'query' => query, 'db' => db). |
set db attribute of the object.
- Parameters:
-
$d | the name of the database in the config global var that we want to use. |
set query attribute of the object.
- Parameters:
-
set SID attribute of the object.
- Parameters:
-
set type attribute of the object.
- Parameters:
-
$t | type of the query, could be changePassword, changePermissions, changeEmail, createUser |
The documentation for this class was generated from the following file:
- /home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/querycache.php