Tunable (aka manual) caching DAO worker. More...
Tunable (aka manual) caching DAO worker.
Definition at line 19 of file CommonDaoWorker.class.php.
CommonDaoWorker::cacheById | ( | Identifiable $ | object, | |
$ | expires = Cache::EXPIRES_MEDIUM | |||
) | [protected] |
cachers
Reimplemented in NullDaoWorker, and TransparentDaoWorker.
Definition at line 425 of file CommonDaoWorker.class.php.
References Cache::DO_NOT_CACHE, Identifiable::getId(), BaseDaoWorker::makeIdKey(), and Cache::me().
CommonDaoWorker::cacheByQuery | ( | SelectQuery $ | query, | |
$ | object, | |||
$ | expires = Cache::DO_NOT_CACHE | |||
) | [protected] |
Reimplemented in CacheDaoWorker, NullDaoWorker, SmartDaoWorker, and VoodooDaoWorker.
Definition at line 442 of file CommonDaoWorker.class.php.
References Cache::DO_NOT_CACHE, BaseDaoWorker::makeQueryKey(), and Cache::me().
Referenced by TransparentDaoWorker::getByQuery(), TransparentDaoWorker::getCustom(), getCustom(), TransparentDaoWorker::getCustomList(), getCustomList(), TransparentDaoWorker::getCustomRowList(), getCustomRowList(), getListByQuery(), and getQueryResult().
CommonDaoWorker::cacheListByQuery | ( | SelectQuery $ | query, | |
$ | array | |||
) | [protected] |
Reimplemented in CacheDaoWorker, SmartDaoWorker, and VoodooDaoWorker.
Definition at line 461 of file CommonDaoWorker.class.php.
Referenced by TransparentDaoWorker::getListByQuery().
CommonDaoWorker::dropById | ( | $ | id | ) |
CommonDaoWorker::getById | ( | $ | id, | |
$ | expires = Cache::EXPIRES_MEDIUM | |||
) |
single object getters
Definition at line 23 of file CommonDaoWorker.class.php.
References BaseDaoWorker::cachedFetchObject(), DBField::create(), Cache::DO_NOT_CACHE, Expression::eq(), BaseDaoWorker::fetchObject(), BaseDaoWorker::getCachedById(), DBPool::me(), and Cache::NOT_FOUND.
CommonDaoWorker::getByLogic | ( | LogicalObject $ | logic, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 73 of file CommonDaoWorker.class.php.
References getByQuery().
CommonDaoWorker::getByQuery | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 83 of file CommonDaoWorker.class.php.
References BaseDaoWorker::cachedFetchObject(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchObject(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), and Cache::NOT_FOUND.
Referenced by getByLogic().
CommonDaoWorker::getCustom | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 120 of file CommonDaoWorker.class.php.
References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), SelectQuery::getLimit(), DBPool::me(), Cache::NOT_FOUND, and SelectQuery::toDialectString().
Referenced by getTotalCount().
CommonDaoWorker::getCustomList | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
custom list getters
Definition at line 306 of file CommonDaoWorker.class.php.
References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), Cache::NOT_FOUND, and SelectQuery::toDialectString().
CommonDaoWorker::getCustomRowList | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 341 of file CommonDaoWorker.class.php.
References cacheByQuery(), Cache::DO_NOT_CACHE, DBPool::getByDao(), BaseDaoWorker::getCachedByQuery(), SelectQuery::getFieldsCount(), DBPool::me(), Cache::NOT_FOUND, and SelectQuery::toDialectString().
CommonDaoWorker::getListByIds | ( | array $ | 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(), BaseDaoWorker::makeIdKey(), Cache::me(), and Cache::NOT_FOUND.
CommonDaoWorker::getListByLogic | ( | LogicalObject $ | logic, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 277 of file CommonDaoWorker.class.php.
References getListByQuery().
Referenced by getListByIds().
CommonDaoWorker::getListByQuery | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
Definition at line 242 of file CommonDaoWorker.class.php.
References cacheByQuery(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchList(), BaseDaoWorker::getCachedByQuery(), DBPool::me(), Cache::NOT_FOUND, and SelectQuery::toDialectString().
Referenced by getListByLogic(), and getPlainList().
CommonDaoWorker::getPlainList | ( | $ | expires = Cache::EXPIRES_MEDIUM |
) |
Definition at line 287 of file CommonDaoWorker.class.php.
References getListByQuery().
CommonDaoWorker::getQueryResult | ( | SelectQuery $ | query, | |
$ | expires = Cache::DO_NOT_CACHE | |||
) |
query result getters
Definition at line 384 of file CommonDaoWorker.class.php.
References cacheByQuery(), QueryResult::create(), SQLFunction::create(), Cache::DO_NOT_CACHE, BaseDaoWorker::fetchList(), DBPool::getByDao(), and BaseDaoWorker::getCachedByQuery().
CommonDaoWorker::getTotalCount | ( | $ | expires = Cache::DO_NOT_CACHE |
) |
Definition at line 294 of file CommonDaoWorker.class.php.
References getCustom().
CommonDaoWorker::uncacheById | ( | $ | id | ) |
uncachers
Reimplemented from BaseDaoWorker.
Reimplemented in DalayedDropDaoWorker, and NullDaoWorker.
Definition at line 484 of file CommonDaoWorker.class.php.
Referenced by uncacheByIds().
CommonDaoWorker::uncacheByIds | ( | $ | ids | ) |
Implements BaseDAO.
Reimplemented in NullDaoWorker.
Definition at line 491 of file CommonDaoWorker.class.php.
References uncacheById().
CommonDaoWorker::uncacheLists | ( | ) |
Implements BaseDAO.
Reimplemented in CacheDaoWorker, NullDaoWorker, SmartDaoWorker, and VoodooDaoWorker.
Definition at line 500 of file CommonDaoWorker.class.php.
References BaseDaoWorker::uncacheByQuery().