VoodooDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Transparent though quite obscure and greedy DAO worker. More...

Inheritance diagram for VoodooDaoWorker:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct (GenericDAO $dao)
 cacheByQuery (SelectQuery $query, $object)
 cachers
 cacheListByQuery (SelectQuery $query, $array)
 uncacheLists ()
 uncachers

Static Public Member Functions

static setDefaultHandler ($handler)

Protected Member Functions

 gentlyGetByKey ($key)
 internal helpers
 spawnHandler ($classKey)

Protected Attributes

 $classKey = null
 $handler = null

Static Private Attributes

static $defaultHandler = null


Detailed Description

Transparent though quite obscure and greedy DAO worker.

Warning:
Do not ever think about using it on production systems, unless you're fully understand every line of code here.
you'll probably want to tweak your sysctl when using MessageSegmentHandler:

kernel.msgmni = (total number of DAOs + 2) kernel.msgmnb = 32767

See also:
CommonDaoWorker for manual-caching one.

SmartDaoWorker for less obscure, but locking-based worker.

Definition at line 30 of file VoodooDaoWorker.class.php.


Constructor & Destructor Documentation

VoodooDaoWorker::__construct ( GenericDAO dao  ) 

Reimplemented from BaseDaoWorker.

Definition at line 45 of file VoodooDaoWorker.class.php.

References TransparentDaoWorker::keyToInt(), Cache::me(), and spawnHandler().

Here is the call graph for this function:


Member Function Documentation

static VoodooDaoWorker::setDefaultHandler ( handler  )  [static]

Definition at line 38 of file VoodooDaoWorker.class.php.

References $handler, and Assert::isTrue().

Here is the call graph for this function:

VoodooDaoWorker::cacheByQuery ( SelectQuery query,
object 
)

cachers

Implements BaseDAO.

Definition at line 61 of file VoodooDaoWorker.class.php.

References Cache::EXPIRES_FOREVER, QueryIdentification::getId(), and Cache::me().

Here is the call graph for this function:

VoodooDaoWorker::cacheListByQuery ( SelectQuery query,
array 
)

Implements BaseDAO.

Definition at line 76 of file VoodooDaoWorker.class.php.

References TransparentDaoWorker::cacheById(), Cache::EXPIRES_FOREVER, Assert::isTrue(), Cache::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

VoodooDaoWorker::uncacheLists (  ) 

uncachers

Implements BaseDAO.

Definition at line 112 of file VoodooDaoWorker.class.php.

VoodooDaoWorker::gentlyGetByKey ( key  )  [protected]

internal helpers

Reimplemented from TransparentDaoWorker.

Definition at line 120 of file VoodooDaoWorker.class.php.

References Cache::me().

Here is the call graph for this function:

VoodooDaoWorker::spawnHandler ( classKey  )  [protected]

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

References $classKey.

Referenced by __construct().


Member Data Documentation

VoodooDaoWorker::$classKey = null [protected]

Definition at line 32 of file VoodooDaoWorker.class.php.

Referenced by spawnHandler().

VoodooDaoWorker::$handler = null [protected]

Definition at line 33 of file VoodooDaoWorker.class.php.

Referenced by setDefaultHandler().

VoodooDaoWorker::$defaultHandler = null [static, private]

Definition at line 36 of file VoodooDaoWorker.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:43 2007 for onPHP by  doxygen 1.5.4