Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Db_Statement_Pdo_Oci Class Reference
Inheritance diagram for Zend_Db_Statement_Pdo_Oci:
Zend_Db_Statement_Pdo Zend_Db_Statement Zend_Db_Statement_Interface

Public Member Functions

 fetchAll ($style=null, $col=null)
 
 fetch ($style=null, $cursor=null, $offset=null)
 
- Public Member Functions inherited from Zend_Db_Statement_Pdo
 bindColumn ($column, &$param, $type=null)
 
 bindValue ($parameter, $value, $type=null)
 
 closeCursor ()
 
 columnCount ()
 
 errorCode ()
 
 errorInfo ()
 
 _execute (array $params=null)
 
 fetch ($style=null, $cursor=null, $offset=null)
 
 getIterator ()
 
 fetchAll ($style=null, $col=null)
 
 fetchColumn ($col=0)
 
 fetchObject ($class='stdClass', array $config=array())
 
 getAttribute ($key)
 
 getColumnMeta ($column)
 
 nextRowset ()
 
 rowCount ()
 
 setAttribute ($key, $val)
 
 setFetchMode ($mode)
 
- Public Member Functions inherited from Zend_Db_Statement
 __construct ($adapter, $sql)
 
 bindColumn ($column, &$param, $type=null)
 
 bindParam ($parameter, &$variable, $type=null, $length=null, $options=null)
 
 bindValue ($parameter, $value, $type=null)
 
 execute (array $params=null)
 
 fetchAll ($style=null, $col=null)
 
 fetchColumn ($col=0)
 
 fetchObject ($class='stdClass', array $config=array())
 
 getAttribute ($key)
 
 setAttribute ($key, $val)
 
 setFetchMode ($mode)
 
 _fetchBound ($row)
 
 getAdapter ()
 
 getDriverStatement ()
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Db_Statement_Pdo
 _prepare ($sql)
 
 _bindParam ($parameter, &$variable, $type=null, $length=null, $options=null)
 
- Protected Member Functions inherited from Zend_Db_Statement
 _prepare ($sql)
 
 _parseParameters ($sql)
 
 _stripQuoted ($sql)
 
- Protected Attributes inherited from Zend_Db_Statement_Pdo
 $_fetchMode = PDO::FETCH_ASSOC
 
- Protected Attributes inherited from Zend_Db_Statement
 $_stmt = null
 
 $_adapter = null
 
 $_fetchMode = Zend_Db::FETCH_ASSOC
 
 $_attribute = array()
 
 $_bindColumn = array()
 
 $_bindParam = array()
 
 $_sqlSplit = array()
 
 $_sqlParam = array()
 
 $_queryId = null
 

Detailed Description

Definition at line 40 of file Oci.php.

Member Function Documentation

◆ fetch()

fetch (   $style = null,
  $cursor = null,
  $offset = null 
)

Fetches a row from the result set.

Parameters
int$styleOPTIONAL Fetch mode for this fetch operation.
int$cursorOPTIONAL Absolute, relative, or other.
int$offsetOPTIONAL Number for absolute or relative cursors.
Returns
mixed Array, object, or scalar depending on fetch mode.
Exceptions
Zend_Db_Statement_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 80 of file Oci.php.

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  }

◆ fetchAll()

fetchAll (   $style = null,
  $col = null 
)

Returns an array containing all of the result set rows.

Behaves like parent, but if limit() is used, the final result removes the extra column 'zend_db_rownum'

Parameters
int$styleOPTIONAL Fetch mode.
int$colOPTIONAL Column number, if fetch mode is by column.
Returns
array Collection of rows, each in a format by the fetch mode.
Exceptions
Zend_Db_Statement_Exception

Implements Zend_Db_Statement_Interface.

Definition at line 55 of file Oci.php.

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  }
$results
Definition: popup.phtml:13

The documentation for this class was generated from the following file: