onPHP

VoodooDaoWorker Class Reference

 

VoodooDaoWorker Class Reference
[Root classes for building DAO hierarchies]

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

Inheritance diagram for VoodooDaoWorker:

List of all members.
 gentlyGetByKey ($key)
 internal helpers
 spawnHandler ($classKey)

Public Member Functions

 __construct (GenericDAO $dao)
 uncacheLists ()
 uncachers

Static Public Member Functions

static setDefaultHandler ($handler)

Protected Member Functions

 cacheByQuery (SelectQuery $query, $object, $expires=Cache::EXPIRES_FOREVER)
 cachers
 cacheListByQuery (SelectQuery $query, $array)

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,
expires = Cache::EXPIRES_FOREVER 
) [protected]

cachers

Reimplemented from CommonDaoWorker.

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

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

Here is the call graph for this function:

VoodooDaoWorker::cacheListByQuery ( SelectQuery query,
array 
) [protected]

Reimplemented from CommonDaoWorker.

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

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

Here is the call graph for this function:

VoodooDaoWorker::uncacheLists (  ) 

uncachers

Reimplemented from CommonDaoWorker.

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

VoodooDaoWorker::gentlyGetByKey ( key  )  [protected]

internal helpers

Reimplemented from TransparentDaoWorker.

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

References Cache::me().

Here is the call graph for this function:

VoodooDaoWorker::spawnHandler ( classKey  )  [private]

Definition at line 135 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 by doxygen-1.5.5
for onPHP at Mon Mar 24 20:31:31 2008