refactored MongoModel to hide fetch method, fixed PHPDoc errors
This commit is contained in:
@ -63,7 +63,6 @@ abstract class Model
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
* @param array $on_duplicate
|
||||
* @return int Id of inserted row
|
||||
*/
|
||||
public function insert($data)
|
||||
@ -152,22 +151,22 @@ abstract class Model
|
||||
abstract public function delete($id);
|
||||
|
||||
/**
|
||||
* @param string $sql
|
||||
* @param array $params
|
||||
* @param string $field
|
||||
* @param CacheKey $cache_key
|
||||
* @param string $data Request
|
||||
* @param array $params Request parameters
|
||||
* @param string $field Requested field name
|
||||
* @param CacheKey $cache_key Key for caching in
|
||||
*/
|
||||
abstract protected function fetchField($data, $params = array(), $field, $cache_key = null);
|
||||
|
||||
/**
|
||||
* @param string $sql
|
||||
* @param array $params
|
||||
* @param CacheKey $cache_key
|
||||
* @param string $data Request
|
||||
* @param array $params Request parameters
|
||||
* @param CacheKey $cache_key Key for caching in
|
||||
*/
|
||||
abstract protected function fetch($data, $params = array(), $cache_key = null);
|
||||
|
||||
/**
|
||||
* @param string $sql
|
||||
* @param string $data
|
||||
* @param array $params
|
||||
* @param CacheKey $cache_key
|
||||
*/
|
||||
|
Reference in New Issue
Block a user