ClusterModel Class Reference

Inheritance diagram for ClusterModel:

Inheritance graph
[legend]
Collaboration diagram for ClusterModel:

Collaboration graph
[legend]

Public Member Functions

 __construct ()
 query ($s, $idname=null)

Data Fields

 $slaves = null
 $masters = null
 $randomSlave = false
 $allowFailover = true
 $readFromMasterAfterWrite = true
 $cacheQueries = false

Detailed Description

Definition at line 27 of file clustermodel.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 76 of file clustermodel.php.


Member Function Documentation

query ( s,
idname = null 
)

execute an actual query on the database

Parameters:
string $s the sql to execute
string $idname can be used to have the keys of the returned array equal the value ob the column given here (instead of just heaving 0..x as keys)

Reimplemented from Model.

Definition at line 82 of file clustermodel.php.


Field Documentation

$allowFailover = true

Definition at line 54 of file clustermodel.php.

$cacheQueries = false

Definition at line 69 of file clustermodel.php.

$masters = null

Definition at line 40 of file clustermodel.php.

$randomSlave = false

Definition at line 49 of file clustermodel.php.

$readFromMasterAfterWrite = true

Definition at line 59 of file clustermodel.php.

$slaves = null

Definition at line 31 of file clustermodel.php.


The documentation for this class was generated from the following file:

Generated on Mon Apr 27 16:29:07 2009 for kata by  doxygen 1.5.8