Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00020 class NullDaoWorker extends CommonDaoWorker
00021 {
00023
00024 public function getById($id)
00025 {
00026 return parent::getById($id, Cache::DO_NOT_CACHE);
00027 }
00028
00029 public function getByLogic(LogicalObject $logic)
00030 {
00031 return parent::getByLogic($logic, Cache::DO_NOT_CACHE);
00032 }
00033
00034 public function getByQuery(SelectQuery $query)
00035 {
00036 return parent::getByQuery($query, Cache::DO_NOT_CACHE);
00037 }
00038
00039 public function getCustom(SelectQuery $query)
00040 {
00041 return parent::getCustom($query, Cache::DO_NOT_CACHE);
00042 }
00044
00046
00047 public function getListByIds(array $ids)
00048 {
00049 try {
00050 return
00051 $this->getListByLogic(
00052 Expression::in(
00053 new DBField(
00054 $this->dao->getIdName(),
00055 $this->dao->getTable()
00056 ),
00057 $ids
00058 )
00059 );
00060 } catch (ObjectNotFoundException $e) {
00061 return array();
00062 }
00063 }
00064
00065 public function getListByQuery(SelectQuery $query)
00066 {
00067 return parent::getListByQuery($query, Cache::DO_NOT_CACHE);
00068 }
00069
00070 public function getListByLogic(LogicalObject $logic)
00071 {
00072 return parent::getListByLogic($logic, Cache::DO_NOT_CACHE);
00073 }
00074
00075 public function getPlainList()
00076 {
00077 return parent::getPlainList(Cache::DO_NOT_CACHE);
00078 }
00080
00082
00083 public function getCustomList(SelectQuery $query)
00084 {
00085 return parent::getCustomList($query, Cache::DO_NOT_CACHE);
00086 }
00087
00088 public function getCustomRowList(SelectQuery $query)
00089 {
00090 return parent::getCustomRowList($query, Cache::DO_NOT_CACHE);
00091 }
00093
00095
00096 public function getQueryResult(SelectQuery $query)
00097 {
00098 return parent::getQueryResult($query, Cache::DO_NOT_CACHE);
00099 }
00101
00103
00104 protected function cacheById(
00105 Identifiable $object,
00106 $expires = Cache::DO_NOT_CACHE
00107 )
00108 {
00109 return $object;
00110 }
00111
00112 protected function cacheByQuery(
00113 SelectQuery $query,
00114 $object,
00115 $expires = Cache::DO_NOT_CACHE
00116 )
00117 {
00118 return $object;
00119 }
00121
00123
00124 public function uncacheById($id)
00125 {
00126 return true;
00127 }
00128
00129 public function uncacheByIds($ids)
00130 {
00131 return true;
00132 }
00133
00134 public function uncacheByQuery(SelectQuery $query)
00135 {
00136 return true;
00137 }
00138
00139 public function uncacheLists()
00140 {
00141 return true;
00142 }
00144
00146
00147 public function getCachedById($id)
00148 {
00149 return null;
00150 }
00151
00152 protected function getCachedByQuery(SelectQuery $query)
00153 {
00154 return null;
00155 }
00157 }
00158 ?>