Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
_prepare ($sql) | |
_bindParam ($parameter, &$variable, $type=null, $length=null, $options=null) | |
closeCursor () | |
columnCount () | |
errorCode () | |
errorInfo () | |
_execute (array $params=null) | |
fetch ($style=null, $cursor=null, $offset=null) | |
fetchObject ($class='stdClass', array $config=array()) | |
nextRowset () | |
rowCount () | |
fetchAll ($style=null, $col=null) | |
![]() | |
__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 () | |
Protected Attributes | |
$_keys | |
$_values | |
![]() | |
$_stmt = null | |
$_adapter = null | |
$_fetchMode = Zend_Db::FETCH_ASSOC | |
$_attribute = array() | |
$_bindColumn = array() | |
$_bindParam = array() | |
$_sqlSplit = array() | |
$_sqlParam = array() | |
$_queryId = null | |
Additional Inherited Members | |
![]() | |
_prepare ($sql) | |
_parseParameters ($sql) | |
_stripQuoted ($sql) | |
_bindParam | ( | $parameter, | |
& | $variable, | ||
$type = null , |
|||
$length = null , |
|||
$options = null |
|||
) |
Binds a parameter to the specified variable name.
mixed | $parameter | Name the parameter, either integer or string. |
mixed | $variable | Reference to PHP variable containing the value. |
mixed | $type | OPTIONAL Datatype of SQL parameter. |
mixed | $length | OPTIONAL Length of SQL parameter. |
mixed | $options | OPTIONAL Other options. |
Zend_Db_Statement_Db2_Exception |
Definition at line 87 of file Db2.php.
_execute | ( | array | $params = null | ) |
Executes a prepared statement.
array | $params | OPTIONAL Values to bind to parameter placeholders. |
Zend_Db_Statement_Db2_Exception |
Definition at line 194 of file Db2.php.
_prepare | ( | $sql | ) |
Prepare a statement handle.
string | $sql |
Zend_Db_Statement_Db2_Exception |
Definition at line 56 of file Db2.php.
closeCursor | ( | ) |
Closes the cursor, allowing the statement to be executed again.
Implements Zend_Db_Statement_Interface.
columnCount | ( | ) |
Returns the number of columns in the result set. Returns null if the statement has no result set metadata.
Implements Zend_Db_Statement_Interface.
errorCode | ( | ) |
Retrieves the error code, if any, associated with the last operation on the statement handle.
Implements Zend_Db_Statement_Interface.
errorInfo | ( | ) |
Retrieves an array of error information, if any, associated with the last operation on the statement handle.
Implements Zend_Db_Statement_Interface.
Definition at line 169 of file Db2.php.
fetch | ( | $style = null , |
|
$cursor = null , |
|||
$offset = null |
|||
) |
Fetches a row from the result set.
int | $style | OPTIONAL Fetch mode for this fetch operation. |
int | $cursor | OPTIONAL Absolute, relative, or other. |
int | $offset | OPTIONAL Number for absolute or relative cursors. |
Zend_Db_Statement_Db2_Exception |
Implements Zend_Db_Statement_Interface.
Definition at line 242 of file Db2.php.
fetchAll | ( | $style = null , |
|
$col = null |
|||
) |
Returns an array containing all of the result set rows.
int | $style | OPTIONAL Fetch mode. |
int | $col | OPTIONAL Column number, if fetch mode is by column. |
Behaves like parent, but if limit() is used, the final result removes the extra column 'zend_db_rownum'
Implements Zend_Db_Statement_Interface.
Definition at line 346 of file Db2.php.
fetchObject | ( | $class = 'stdClass' , |
|
array | $config = array() |
||
) |
Fetches the next row and returns it as an object.
string | $class | OPTIONAL Name of the class to create. |
array | $config | OPTIONAL Constructor arguments for the class. |
Implements Zend_Db_Statement_Interface.
Definition at line 290 of file Db2.php.
nextRowset | ( | ) |
Retrieves the next rowset (result set) for a SQL statement that has multiple result sets. An example is a stored procedure that returns the results of multiple queries.
Zend_Db_Statement_Db2_Exception |
Implements Zend_Db_Statement_Interface.
Definition at line 304 of file Db2.php.
rowCount | ( | ) |
Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
Implements Zend_Db_Statement_Interface.