3 class DrupalQBuilder
extends QBuilder
{
4 public function fetch($as_array = FALSE) {
5 $db_fetch = 'db_fetch_object';
7 $db_fetch = 'db_fetch_array';
10 $result = db_query($this->sql(), $this->getArguments());
12 while ($row = $db_fetch($result)) {
18 public function fetchArray() {
19 return $this->fetch($as_array = TRUE);
22 public function fetchRow($as_array = FALSE) {
23 $db_fetch = 'db_fetch_object';
25 $db_fetch = 'db_fetch_array';
27 $result = db_query($this->sql(), $this->getArguments());
29 return $db_fetch($result);