Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Oci.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Db/Statement/Pdo.php';
27 
41 {
42 
55  public function fetchAll($style = null, $col = null)
56  {
57  $data = parent::fetchAll($style, $col);
58  $results = array();
59  $remove = $this->_adapter->foldCase('zend_db_rownum');
60 
61  foreach ($data as $row) {
62  if (is_array($row) && array_key_exists($remove, $row)) {
63  unset($row[$remove]);
64  }
65  $results[] = $row;
66  }
67  return $results;
68  }
69 
70 
80  public function fetch($style = null, $cursor = null, $offset = null)
81  {
82  $row = parent::fetch($style, $cursor, $offset);
83 
84  $remove = $this->_adapter->foldCase('zend_db_rownum');
85  if (is_array($row) && array_key_exists($remove, $row)) {
86  unset($row[$remove]);
87  }
88 
89  return $row;
90  }
91 }
fetchAll($style=null, $col=null)
Definition: Oci.php:55
$results
Definition: popup.phtml:13
fetch($style=null, $cursor=null, $offset=null)
Definition: Oci.php:80