onPHP

CommonDaoWorker Class Reference

 

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)
 getById ($id, $expires=Cache::EXPIRES_MEDIUM)
 getByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getByQuery (SelectQuery $query, $expires=Cache::EXPIRES_MEDIUM)
 getCustom (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 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, $expres=Cache::DO_NOT_CACHE)
 getCustomRowList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCountedList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 getQueryResult (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 cacheById (Identifiable $object, $expires=Cache::EXPIRES_MEDIUM)
 cacheByQuery (SelectQuery $query, $object, $expires=Cache::DO_NOT_CACHE)
 cacheListByQuery (SelectQuery $query, $array)
 dropById ($id)
 dropByIds ($ids)
 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 
)

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

References getByQuery().

Referenced by getQueryResult().

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(), DBPool::getByDao(), and BaseDaoWorker::getCachedById().

Referenced by getListByIds().

Here is the call graph for this function:

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

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

References getByQuery().

Here is the call graph for this function:

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

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

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

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 97 of file CommonDaoWorker.class.php.

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

Here is the call graph for this function:

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

Definition at line 128 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 136 of file CommonDaoWorker.class.php.

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

Here is the call graph for this function:

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

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

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

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 232 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 242 of file CommonDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

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

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

References DBPool::getByDao().

Here is the call graph for this function:

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

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

References DBPool::getByDao().

Here is the call graph for this function:

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

Definition at line 280 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 290 of file CommonDaoWorker.class.php.

References SQLFunction::create(), get(), and DBPool::getByDao().

Referenced by getCountedList().

Here is the call graph for this function:

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

Definition at line 318 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 335 of file CommonDaoWorker.class.php.

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

Referenced by getByQuery(), getCustom(), and getListByQuery().

Here is the call graph for this function:

CommonDaoWorker::cacheListByQuery ( SelectQuery query,
array 
)

Implements BaseDAO.

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

CommonDaoWorker::dropById ( id  ) 

Reimplemented from BaseDaoWorker.

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

References uncacheLists().

Here is the call graph for this function:

CommonDaoWorker::dropByIds ( ids  ) 

Implements BaseDAO.

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

References OSQL::delete(), DBPool::getByDao(), Expression::in(), BaseDaoWorker::uncacheById(), and uncacheLists().

Here is the call graph for this function:

CommonDaoWorker::uncacheByIds ( ids  ) 

Implements BaseDAO.

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

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

Here is the call graph for this function:

CommonDaoWorker::uncacheLists (  ) 

Implements BaseDAO.

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

References BaseDaoWorker::uncacheByQuery().

Referenced by dropById(), dropByIds(), and uncacheByIds().

Here is the call graph for this function:


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

generated by doxygen-1.5.1
for onPHP at Tue Feb 13 19:29:37 2007