refactored MongoModel to hide fetch method, fixed PHPDoc errors

This commit is contained in:
Anton Grebnev
2012-10-19 20:15:26 +04:00
parent efb6c2d34c
commit 11a5968105
14 changed files with 436 additions and 187 deletions

View File

@ -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();