Basis for transparent DAO workers. More...
Public Member Functions | |
getById ($id) | |
single object getters | |
getByLogic (LogicalObject $logic) | |
getByQuery (SelectQuery $query) | |
getCustom (SelectQuery $query) | |
getListByIds (array $ids) | |
object's list getters | |
getListByQuery (SelectQuery $query) | |
getListByLogic (LogicalObject $logic) | |
getPlainList () | |
getCustomList (SelectQuery $query) | |
custom list getters | |
getCustomRowList (SelectQuery $query) | |
getQueryResult (SelectQuery $query) | |
query result getters | |
Protected Member Functions | |
gentlyGetByKey ($key) | |
cacheById (Identifiable $object, $expires=Cache::EXPIRES_FOREVER) | |
cachers | |
getCachedByQuery (SelectQuery $query) | |
internal helpers | |
getCachedList (SelectQuery $query) | |
cacheNullById ($id) | |
keyToInt ($key) |
Basis for transparent DAO workers.
Definition at line 20 of file TransparentDaoWorker.class.php.
TransparentDaoWorker::cacheById | ( | Identifiable $ | object, | |
$ | expires = Cache::EXPIRES_FOREVER | |||
) | [protected] |
cachers
Reimplemented from CommonDaoWorker.
Definition at line 187 of file TransparentDaoWorker.class.php.
References Identifiable::getId(), BaseDaoWorker::makeIdKey(), and Cache::me().
Referenced by SmartDaoWorker::cacheListByQuery().
TransparentDaoWorker::cacheNullById | ( | $ | id | ) | [protected] |
Definition at line 220 of file TransparentDaoWorker.class.php.
References Cache::EXPIRES_FOREVER, BaseDaoWorker::makeIdKey(), Cache::me(), and Cache::NOT_FOUND.
Referenced by getById().
TransparentDaoWorker::gentlyGetByKey | ( | $ | key | ) | [abstract, protected] |
Reimplemented in CacheDaoWorker, SmartDaoWorker, and VoodooDaoWorker.
Referenced by getCachedByQuery(), and getCachedList().
TransparentDaoWorker::getById | ( | $ | id | ) |
single object getters
Implements BaseDAO.
Definition at line 26 of file TransparentDaoWorker.class.php.
References cacheNullById(), and Cache::EXPIRES_FOREVER.
Referenced by getListByIds().
TransparentDaoWorker::getByLogic | ( | LogicalObject $ | logic | ) |
Implements BaseDAO.
Definition at line 38 of file TransparentDaoWorker.class.php.
References Cache::EXPIRES_FOREVER.
TransparentDaoWorker::getByQuery | ( | SelectQuery $ | query | ) |
Implements BaseDAO.
Definition at line 43 of file TransparentDaoWorker.class.php.
References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.
TransparentDaoWorker::getCachedByQuery | ( | SelectQuery $ | query | ) | [protected] |
internal helpers
Reimplemented from BaseDaoWorker.
Definition at line 204 of file TransparentDaoWorker.class.php.
References gentlyGetByKey(), and BaseDaoWorker::makeQueryKey().
TransparentDaoWorker::getCachedList | ( | SelectQuery $ | query | ) | [protected] |
Definition at line 212 of file TransparentDaoWorker.class.php.
References gentlyGetByKey(), and BaseDaoWorker::makeQueryKey().
Referenced by getListByQuery().
TransparentDaoWorker::getCustom | ( | SelectQuery $ | query | ) |
Implements BaseDAO.
Definition at line 55 of file TransparentDaoWorker.class.php.
References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.
TransparentDaoWorker::getCustomList | ( | SelectQuery $ | query | ) |
custom list getters
Implements BaseDAO.
Definition at line 152 of file TransparentDaoWorker.class.php.
References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.
TransparentDaoWorker::getCustomRowList | ( | SelectQuery $ | query | ) |
Implements BaseDAO.
Definition at line 164 of file TransparentDaoWorker.class.php.
References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.
TransparentDaoWorker::getListByIds | ( | array $ | ids | ) |
object's list getters
Implements BaseDAO.
Definition at line 70 of file TransparentDaoWorker.class.php.
References getById(), BaseDaoWorker::makeIdKey(), Cache::me(), and Cache::NOT_FOUND.
TransparentDaoWorker::getListByLogic | ( | LogicalObject $ | logic | ) |
Implements BaseDAO.
Definition at line 139 of file TransparentDaoWorker.class.php.
References Cache::EXPIRES_FOREVER.
TransparentDaoWorker::getListByQuery | ( | SelectQuery $ | query | ) |
Implements BaseDAO.
Definition at line 118 of file TransparentDaoWorker.class.php.
References CommonDaoWorker::cacheListByQuery(), BaseDaoWorker::fetchList(), getCachedList(), Assert::isUnreachable(), and Cache::NOT_FOUND.
TransparentDaoWorker::getPlainList | ( | ) |
Implements BaseDAO.
Definition at line 144 of file TransparentDaoWorker.class.php.
References Cache::EXPIRES_FOREVER.
TransparentDaoWorker::getQueryResult | ( | SelectQuery $ | query | ) |
query result getters
Implements BaseDAO.
Definition at line 179 of file TransparentDaoWorker.class.php.
References Cache::EXPIRES_FOREVER.
TransparentDaoWorker::keyToInt | ( | $ | key | ) | [protected] |
Definition at line 231 of file TransparentDaoWorker.class.php.
Referenced by VoodooDaoWorker::__construct(), SmartDaoWorker::cacheByQuery(), SmartDaoWorker::cacheListByQuery(), SmartDaoWorker::checkMap(), and SmartDaoWorker::uncacheLists().