Ryzom Account Management System
Public Member Functions | Private Attributes
Querycache Class Reference

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:
$idthe id of the querycaches row
Querycache::set ( values)

sets the object's attributes.

Parameters:
$valuesshould be an array of the form array('SID' => sid, 'type' => type, 'query' => query, 'db' => db).

set db attribute of the object.

Parameters:
$dthe name of the database in the config global var that we want to use.

set query attribute of the object.

Parameters:
$qquery string

set SID attribute of the object.

Parameters:
$sinteger id

set type attribute of the object.

Parameters:
$ttype of the query, could be changePassword, changePermissions, changeEmail, createUser

The documentation for this class was generated from the following file:
 All Classes Functions Variables