refactored MongoModel to hide fetch method, fixed PHPDoc errors
This commit is contained in:
@ -37,7 +37,7 @@ abstract class SqlDbDriver extends DbDriver
|
||||
|
||||
/**
|
||||
* @param string $table
|
||||
* @param mixed $bind
|
||||
* @param mixed $data
|
||||
* @param mixed $on_duplicate
|
||||
* @return int Affected rows count
|
||||
*/
|
||||
@ -56,9 +56,9 @@ abstract class SqlDbDriver extends DbDriver
|
||||
|
||||
/**
|
||||
* @param string $table
|
||||
* @param array $bind
|
||||
* @param mixed $where
|
||||
* @return int
|
||||
* @param array $data
|
||||
* @param mixed $condition
|
||||
* @return int Number of updated rows
|
||||
*/
|
||||
public function update($table, $data, $condition = '')
|
||||
{
|
||||
@ -74,7 +74,7 @@ abstract class SqlDbDriver extends DbDriver
|
||||
|
||||
/**
|
||||
* @param string $table
|
||||
* @param mixed $where
|
||||
* @param mixed $condition
|
||||
* @return int
|
||||
*/
|
||||
public function delete($table, $condition = '')
|
||||
@ -152,10 +152,6 @@ abstract class SqlDbDriver extends DbDriver
|
||||
return implode(' AND ', $where);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return DbStatement
|
||||
*/
|
||||
|
||||
abstract protected function driverQuote($value);
|
||||
|
||||
abstract protected function driverBeginTransaction();
|
||||
|
Reference in New Issue
Block a user