added TODO for class methods

This commit is contained in:
Anton Grebnev
2011-11-17 15:48:41 +04:00
parent 2f3a0d170f
commit d360e7c023

View File

@ -28,6 +28,9 @@ abstract class MongoModel extends Model
return $this->db->delete($this->table(), array('_id' => $id)); return $this->db->delete($this->table(), array('_id' => $id));
} }
/**
* @TODO: check for limits (if just one record needed)
*/
protected function fetchField($data, $params = array(), $field, $cache_key = null) protected function fetchField($data, $params = array(), $field, $cache_key = null)
{ {
if (!$cache_key || !$result = $cache_key->get()) { if (!$cache_key || !$result = $cache_key->get()) {
@ -39,6 +42,9 @@ abstract class MongoModel extends Model
return $result; return $result;
} }
/**
* @TODO: check for limits (if just one record needed)
*/
protected function fetch($data, $params = array(), $cache_key = null) protected function fetch($data, $params = array(), $cache_key = null)
{ {
if (!$cache_key || !$result = $cache_key->get()) { if (!$cache_key || !$result = $cache_key->get()) {