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

 getById ($id, $expires=Cache::EXPIRES_MEDIUM)
 single object getters
 getByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getByQuery (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCustom (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getListByIds ($ids, $expires=Cache::EXPIRES_MEDIUM)
 object's list getters
 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)
 getQueryResult (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 query result getters
 dropById ($id)
 erasers
 uncacheByIds ($ids)
 uncachers
 uncacheLists ()

Protected Member Functions

 cacheById (Identifiable $object, $expires=Cache::EXPIRES_MEDIUM)
 cachers
 cacheByQuery (SelectQuery $query, $object, $expires=Cache::DO_NOT_CACHE)
 cacheListByQuery (SelectQuery $query, $array)


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::getById ( id,
expires = Cache::EXPIRES_MEDIUM 
)

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

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

References getByQuery().

Here is the call graph for this function:

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

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

Definition at line 121 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::getListByIds ( ids,
expires = Cache::EXPIRES_MEDIUM 
)

object's list getters

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

References Cache::DO_NOT_CACHE, 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 
)

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

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

Referenced by getListByLogic(), and getPlainList().

Here is the call graph for this function:

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

Definition at line 259 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 269 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 279 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 314 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::getQueryResult ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

query result getters

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

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

Here is the call graph for this function:

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

cachers

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

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

Here is the call graph for this function:

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

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

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

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

Here is the call graph for this function:

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

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

CommonDaoWorker::dropById ( id  ) 

erasers

Reimplemented from BaseDaoWorker.

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

CommonDaoWorker::uncacheByIds ( ids  ) 

uncachers

Implements BaseDAO.

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

References BaseDaoWorker::uncacheById().

Here is the call graph for this function:

CommonDaoWorker::uncacheLists (  ) 

Implements BaseDAO.

Definition at line 463 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.4
for onPHP at Mon Jan 21 03:39:21 2008