fetchPairs method, #16
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@133 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -151,6 +151,14 @@ abstract class DbStatement
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function fetchPairs()
|
||||||
|
{
|
||||||
|
while ($row = $this->fetch(Db::FETCH_NUM)) {
|
||||||
|
$data[$row[0]] = $row[1];
|
||||||
|
}
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
/* Abstract methods */
|
/* Abstract methods */
|
||||||
|
|
||||||
abstract public function fetch($style = Db::FETCH_OBJ);
|
abstract public function fetch($style = Db::FETCH_OBJ);
|
||||||
|
Reference in New Issue
Block a user