Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ConfigDBBackend Class Reference

Inheritance diagram for ConfigDBBackend:

Inheritance graph
[legend]
Collaboration diagram for ConfigDBBackend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConfigDBBackend ($petition)
 GetConfig ()
 SetConfig ($keys)
 _MakeQuery ($key, $value)
 _GetIdK ($key)
 _InsertValue ($idK, $value)
 _UpdateValue ($idK, $value)

Public Attributes

 $idM
 The id of the module.

 $idG
 The id of the group.

 $idU
 The id of the user.

 $dbObj
 The DBJames Object.


Detailed Description

Config backend for the DB.

Definition at line 12 of file ConfigDBBackend.class.php.


Constructor & Destructor Documentation

ConfigDBBackend::ConfigDBBackend petition  ) 
 

Initializes de backend with a petition.

Parameters:
petition A ConfigPetition object.

Definition at line 24 of file ConfigDBBackend.class.php.


Member Function Documentation

ConfigDBBackend::_GetIdK key  ) 
 

Gets the idK for a key name.

Parameters:
key The key name.
Returns:
idK Its id or false if there was an error.

Definition at line 106 of file ConfigDBBackend.class.php.

ConfigDBBackend::_InsertValue idK,
value
 

Inserts a new value in the DB.

Parameters:
idK The id of the key of the new value.
value The value of the key.
Returns:
boolean (false if error).

Definition at line 130 of file ConfigDBBackend.class.php.

ConfigDBBackend::_MakeQuery key,
value
 

Makes the query to store the specified key, value in the DB.

Parameters:
key The key
value The value
Returns:
boolean (false if there was an error)

Definition at line 86 of file ConfigDBBackend.class.php.

ConfigDBBackend::_UpdateValue idK,
value
 

Updates a value in the DB.

Parameters:
idK The id of the key whose value is going to be updated.
value The value of the key.
Returns:
boolean (false if error).

Definition at line 149 of file ConfigDBBackend.class.php.

ConfigDBBackend::GetConfig  ) 
 

Returns the configuration keys and values for the specified petition.

Returns:
Array of (key, value) pairs.

Reimplemented from IConfigBackend.

Definition at line 43 of file ConfigDBBackend.class.php.

ConfigDBBackend::SetConfig keys  ) 
 

Stores an array of key, value pairs in the DB.

Parameters:
keys Array of key, value pairs.

Reimplemented from IConfigBackend.

Definition at line 69 of file ConfigDBBackend.class.php.


Member Data Documentation

ConfigDBBackend::$dbObj
 

The DBJames Object.

Definition at line 18 of file ConfigDBBackend.class.php.

ConfigDBBackend::$idG
 

The id of the group.

Definition at line 15 of file ConfigDBBackend.class.php.

ConfigDBBackend::$idM
 

The id of the module.

Definition at line 14 of file ConfigDBBackend.class.php.

ConfigDBBackend::$idU
 

The id of the user.

Definition at line 16 of file ConfigDBBackend.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:36 2003 for James by doxygen 1.3.4