added Order, Limit, Skip methods to MongoStatement

This commit is contained in:
Anton Grebnev
2011-11-15 19:19:30 +04:00
parent 5b5ccb9971
commit 594ec034f9
6 changed files with 171 additions and 18 deletions

View File

@ -117,6 +117,18 @@ class MySQLiStatement extends DbStatement
{
return $this->result->fetch_object($class);
}
/**
* @return array
*/
public function fetchPairs()
{
$data = array();
while ($row = $this->fetch(Db::FETCH_NUM)) {
$data[$row[0]] = $row[1];
}
return $data;
}
public function close()
{