Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Ibm.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Db/Statement/Pdo.php';
27 
41 {
54  public function fetchAll($style = null, $col = null)
55  {
56  $data = parent::fetchAll($style, $col);
57  $results = array();
58  $remove = $this->_adapter->foldCase('ZEND_DB_ROWNUM');
59 
60  foreach ($data as $row) {
61  if (is_array($row) && array_key_exists($remove, $row)) {
62  unset($row[$remove]);
63  }
64  $results[] = $row;
65  }
66  return $results;
67  }
68 
80  public function _bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
81  {
82  try {
83  if (($type === null) && ($length === null) && ($options === null)) {
84  return $this->_stmt->bindParam($parameter, $variable);
85  } else {
86  return $this->_stmt->bindParam($parameter, $variable, $type, $length, $options);
87  }
88  } catch (PDOException $e) {
89  #require_once 'Zend/Db/Statement/Exception.php';
90  throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
91  }
92  }
93 
94 }
$results
Definition: popup.phtml:13
_bindParam($parameter, &$variable, $type=null, $length=null, $options=null)
Definition: Ibm.php:80
$variable
Definition: variable.php:7
$type
Definition: item.phtml:13
fetchAll($style=null, $col=null)
Definition: Ibm.php:54