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:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Protected Member Functions

 gentlyGetByKey ($key)

Protected Attributes

 $classKey = null

Static Private Attributes

static $handlerName = 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.
See also:
CommonDaoWorker for manual-caching one.

SmartDaoWorker for less obscure, but locking-based worker.

FileSystemDaoWorker for filesystem based child.

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


Constructor & Destructor Documentation

VoodooDaoWorker::__construct ( GenericDAO dao  ) 

Reimplemented from BaseDaoWorker.

Reimplemented in FileSystemDaoWorker.

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

References BaseDaoWorker::$dao, TransparentDaoWorker::keyToInt(), and Cache::me().

Here is the call graph for this function:


Member Function Documentation

VoodooDaoWorker::cacheByQuery ( SelectQuery query,
object 
)

Implements BaseDAO.

Definition at line 65 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 80 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 (  ) 

Implements BaseDAO.

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

VoodooDaoWorker::gentlyGetByKey ( key  )  [protected]

Reimplemented from TransparentDaoWorker.

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

References Cache::me().

Here is the call graph for this function:


Member Data Documentation

VoodooDaoWorker::$classKey = null [protected]

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

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

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


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

generated by doxygen-1.5.1
for onPHP at Sun Nov 12 00:46:14 2006