CommonDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Tunable (aka manual) caching DAO worker. More...

Inheritance diagram for CommonDaoWorker:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 get (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 single object getters
 getById ($id, $expires=Cache::EXPIRES_MEDIUM)
 getByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getByQuery (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCustom (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 object's list getters
 getListByIds ($ids, $expires=Cache::EXPIRES_MEDIUM)
 getListByQuery (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getListByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getPlainList ($expires=Cache::EXPIRES_MEDIUM)
 getCustomList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 custom list getters
 getCustomRowList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCountedList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 query result getters
 getQueryResult (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 cacheById (Identifiable $object, $expires=Cache::EXPIRES_MEDIUM)
 cachers
 cacheByQuery (SelectQuery $query, $object, $expires=Cache::DO_NOT_CACHE)
 cacheListByQuery (SelectQuery $query, $array)
 dropById ($id)
 erasers
 uncacheByIds ($ids)
 uncachers
 uncacheLists ()


Detailed Description

Tunable (aka manual) caching DAO worker.

See also:
SmartDaoWorker for auto-caching one.

Definition at line 20 of file CommonDaoWorker.class.php.


Member Function Documentation

CommonDaoWorker::get ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

single object getters

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

References getByQuery().

Here is the call graph for this function:

CommonDaoWorker::getById ( id,
expires = Cache::EXPIRES_MEDIUM 
)

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

References cacheById(), DBField::create(), Cache::DO_NOT_CACHE, Expression::eq(), BaseDaoWorker::fetchObject(), BaseDaoWorker::getCachedById(), DBPool::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

CommonDaoWorker::getByLogic ( LogicalObject logic,
expires = Cache::DO_NOT_CACHE 
)

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

References getByQuery().

Here is the call graph for this function:

CommonDaoWorker::getByQuery ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

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

References cacheByQuery(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchObject(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.

Referenced by get(), and getByLogic().

Here is the call graph for this function:

CommonDaoWorker::getCustom ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 119 of file CommonDaoWorker.class.php.

References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

CommonDaoWorker::getList ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

object's list getters

Definition at line 163 of file CommonDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

CommonDaoWorker::getListByIds ( ids,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 171 of file CommonDaoWorker.class.php.

References Cache::DO_NOT_CACHE, BaseDaoWorker::getCachedById(), getListByLogic(), Expression::in(), and Cache::NOT_FOUND.

Here is the call graph for this function:

CommonDaoWorker::getListByQuery ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 229 of file CommonDaoWorker.class.php.

References cacheByQuery(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchList(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.

Referenced by getList(), getListByLogic(), and getPlainList().

Here is the call graph for this function:

CommonDaoWorker::getListByLogic ( LogicalObject logic,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 264 of file CommonDaoWorker.class.php.

References getListByQuery().

Referenced by getListByIds().

Here is the call graph for this function:

CommonDaoWorker::getPlainList ( expires = Cache::EXPIRES_MEDIUM  ) 

Definition at line 274 of file CommonDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

CommonDaoWorker::getCustomList ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

custom list getters

Definition at line 284 of file CommonDaoWorker.class.php.

References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

CommonDaoWorker::getCustomRowList ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 319 of file CommonDaoWorker.class.php.

References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

CommonDaoWorker::getCountedList ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

query result getters

Definition at line 362 of file CommonDaoWorker.class.php.

References getQueryResult().

Here is the call graph for this function:

CommonDaoWorker::getQueryResult ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 372 of file CommonDaoWorker.class.php.

References cacheByQuery(), QueryResult::create(), SQLFunction::create(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchList(), DBPool::getByDao(), and BaseDaoWorker::getCachedByQuery().

Referenced by getCountedList().

Here is the call graph for this function:

CommonDaoWorker::cacheById ( Identifiable object,
expires = Cache::EXPIRES_MEDIUM 
)

cachers

Definition at line 409 of file CommonDaoWorker.class.php.

References Cache::DO_NOT_CACHE, Identifiable::getId(), and Cache::me().

Referenced by getById().

Here is the call graph for this function:

CommonDaoWorker::cacheByQuery ( SelectQuery query,
object,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 426 of file CommonDaoWorker.class.php.

References Cache::DO_NOT_CACHE, and Cache::me().

Referenced by getByQuery(), getCustom(), getCustomList(), getCustomRowList(), getListByQuery(), and getQueryResult().

Here is the call graph for this function:

CommonDaoWorker::cacheListByQuery ( SelectQuery query,
array 
)

Implements BaseDAO.

Definition at line 445 of file CommonDaoWorker.class.php.

CommonDaoWorker::dropById ( id  ) 

erasers

Reimplemented from BaseDaoWorker.

Definition at line 453 of file CommonDaoWorker.class.php.

CommonDaoWorker::uncacheByIds ( ids  ) 

uncachers

Implements BaseDAO.

Definition at line 465 of file CommonDaoWorker.class.php.

References BaseDaoWorker::uncacheById().

Here is the call graph for this function:

CommonDaoWorker::uncacheLists (  ) 

Implements BaseDAO.

Definition at line 474 of file CommonDaoWorker.class.php.

References BaseDaoWorker::uncacheByQuery().

Here is the call graph for this function:


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