onPHP

CommonDaoWorker Class Reference

 

CommonDaoWorker Class Reference
[Root classes for building DAO hierarchies]

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

Inheritance diagram for CommonDaoWorker:

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
 uncacheById ($id)
 uncachers
 uncacheByIds ($ids)
 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 
)

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().

Referenced by getListByIds().

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, getList(), getListByLogic(), Expression::in(), Assert::isUnreachable(), Cache::me(), and Cache::NOT_FOUND.

Here is the call graph for this function:

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

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

Definition at line 275 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 285 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 295 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 330 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 373 of file CommonDaoWorker.class.php.

References getQueryResult().

Here is the call graph for this function:

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

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

cachers

Definition at line 424 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 441 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 460 of file CommonDaoWorker.class.php.

CommonDaoWorker::dropById ( id  ) 

erasers

Reimplemented from BaseDaoWorker.

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

CommonDaoWorker::uncacheById ( id  ) 

uncachers

Reimplemented from BaseDaoWorker.

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

CommonDaoWorker::uncacheByIds ( ids  ) 

Implements BaseDAO.

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

CommonDaoWorker::uncacheLists (  ) 

Implements BaseDAO.

Definition at line 496 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 by doxygen-1.5.5
for onPHP at Thu Aug 7 18:21:04 2008