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

class for storing changes when shard is offline. More...

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

getDb ( )

get db attribute of the object.

getQuery ( )

get query attribute of the object.

getSID ( )

get SID attribute of the object.

getType ( )

get type attribute of the object.

load_With_SID ( id)

loads the object's attributes.

loads the object's attributes by giving a SID as parameter

Parameters:
$idthe id of the querycaches row
set ( values)

sets the object's attributes.

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

set db attribute of the object.

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

set query attribute of the object.

Parameters:
$qquery string
setSID ( s)

set SID attribute of the object.

Parameters:
$sinteger id
setType ( t)

set type attribute of the object.

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

updates the entry.


Field Documentation

$db [private]

the db where the query should be performed

$query [private]

The query itself (json encoded)

$SID [private]

The queries ID.

$type [private]

The type of query.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables