Esempio n. 1
0
 /**
  * Return the results array from the results resource.
  *
  * @throws \Pop\Db\Adapter\Exception
  * @return array
  */
 public function fetch()
 {
     if (null !== $this->statement) {
         return $this->statement->fetch();
     } else {
         if (!isset($this->result)) {
             throw new Exception('Error: The database result resource is not currently set.');
         }
         return $this->result->fetch_array(MYSQLI_ASSOC);
     }
 }