Ejemplo n.º 1
0
 /**
  * Internal method to fetch the next item from result set
  *
  * @return array|boolean The next item or false
  * @throws Exception\ExceptionInterface
  */
 protected function internalFetch()
 {
     if (!$this->stmtActive) {
         return false;
     }
     if ($this->stmtGlob !== null) {
         $result = $this->fetchByGlob();
         if ($result === false) {
             // clear statement
             $this->stmtActive = false;
             $this->stmtGlob = null;
             $this->stmtMatch = null;
             $this->stmtOptions = null;
         }
     } else {
         $result = parent::internalFetch();
     }
     return $result;
 }