Exemplo n.º 1
0
 private function query($query, $singleColumn = false, $singleRow = false)
 {
     debug("SQL: query", $query);
     if ($this->debug) {
         $this->sqlLog[] = $query;
     }
     if ($this->offline) {
         return;
     }
     $this->connect();
     //if connection not already open
     $result = $this->mysqlConnection->query($query);
     $rows = SqlManager::getResultData($result, $singleColumn, $singleRow);
     return $rows;
 }