Пример #1
0
 /**
  * @return Array|null
  */
 public function fetch()
 {
     $result = null;
     if ($this->resource) {
         $result = $this->resource->fetch();
     } elseif ($this->resourceCDBResult) {
         $result = $this->resourceCDBResult->Fetch();
     }
     if ($result) {
         $result = $this->fetchModifierFields($result);
     }
     return $result && count($result) > 0 ? $result : null;
 }
Пример #2
0
 /**
  * Move forward to next element
  * @link http://php.net/manual/en/iterator.next.php
  * @return void Any returned value is ignored.
  * @since 5.0.0
  */
 public function next()
 {
     $this->currentData = $this->result->fetch($this->converter);
     $this->counter++;
 }