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

Public Member Functions

 fetchAll ($style=null, $col=null)
 
 _bindParam ($parameter, &$variable, $type=null, $length=null, $options=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 Ibm.php.

Member Function Documentation

◆ _bindParam()

_bindParam (   $parameter,
$variable,
  $type = null,
  $length = null,
  $options = null 
)

Binds a parameter to the specified variable name.

Parameters
mixed$parameterName the parameter, either integer or string.
mixed$variableReference to PHP variable containing the value.
mixed$typeOPTIONAL Datatype of SQL parameter.
mixed$lengthOPTIONAL Length of SQL parameter.
mixed$optionsOPTIONAL Other options.
Returns
bool
Exceptions
Zend_Db_Statement_Exception

Definition at line 80 of file Ibm.php.

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  }
$variable
Definition: variable.php:7
$type
Definition: item.phtml:13

◆ 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 54 of file Ibm.php.

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

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