|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| bindColumn ($column, &$param, $type=null) | |
| bindParam ($parameter, &$variable, $type=null, $length=null, $options=null) | |
| bindValue ($parameter, $value, $type=null) | |
| closeCursor () | |
| columnCount () | |
| errorCode () | |
| errorInfo () | |
| execute (array $params=array()) | |
| fetch ($style=null, $cursor=null, $offset=null) | |
| fetchAll ($style=null, $col=null) | |
| fetchColumn ($col=0) | |
| fetchObject ($class='stdClass', array $config=array()) | |
| getAttribute ($key) | |
| nextRowset () | |
| rowCount () | |
| setAttribute ($key, $val) | |
| setFetchMode ($mode) | |
Definition at line 32 of file Interface.php.
| bindColumn | ( | $column, | |
| & | $param, | ||
$type = null |
|||
| ) |
Bind a column of the statement result set to a PHP variable.
| string | $column | Name the column in the result set, either by position or by name. |
| mixed | $param | Reference to the PHP variable containing the value. |
| mixed | $type | OPTIONAL |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement, and Zend_Db_Statement_Pdo.
| 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_Exception |
Implemented in Zend_Db_Statement.
| bindValue | ( | $parameter, | |
| $value, | |||
$type = null |
|||
| ) |
Binds a value to a parameter.
| mixed | $parameter | Name the parameter, either integer or string. |
| mixed | $value | Scalar value to bind to the parameter. |
| mixed | $type | OPTIONAL Datatype of the parameter. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement, and Zend_Db_Statement_Pdo.
| closeCursor | ( | ) |
Closes the cursor, allowing the statement to be executed again.
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, Zend_Db_Statement_Oracle, Zend_Db_Statement_Db2, Zend_Db_Statement_Mysqli, and Zend_Db_Statement_Sqlsrv.
| columnCount | ( | ) |
Returns the number of columns in the result set. Returns null if the statement has no result set metadata.
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, Zend_Db_Statement_Oracle, Zend_Db_Statement_Mysqli, Zend_Db_Statement_Db2, and Zend_Db_Statement_Sqlsrv.
| errorCode | ( | ) |
Retrieves the error code, if any, associated with the last operation on the statement handle.
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, Zend_Db_Statement_Oracle, Zend_Db_Statement_Mysqli, Zend_Db_Statement_Db2, and Zend_Db_Statement_Sqlsrv.
| errorInfo | ( | ) |
Retrieves an array of error information, if any, associated with the last operation on the statement handle.
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, Zend_Db_Statement_Oracle, Zend_Db_Statement_Db2, Zend_Db_Statement_Mysqli, and Zend_Db_Statement_Sqlsrv.
| execute | ( | array | $params = array() | ) |
Executes a prepared statement.
| array | $params | OPTIONAL Values to bind to parameter placeholders. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement.
| 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_Exception |
Implemented in Zend_Db_Statement_Oracle, Zend_Db_Statement_Mysqli, Zend_Db_Statement_Pdo, Zend_Db_Statement_Db2, Zend_Db_Statement_Sqlsrv, and Zend_Db_Statement_Pdo_Oci.
| 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. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Sqlsrv, Zend_Db_Statement_Oracle, Zend_Db_Statement_Db2, Zend_Db_Statement, Zend_Db_Statement_Pdo, Zend_Db_Statement_Pdo_Oci, and Zend_Db_Statement_Pdo_Ibm.
| fetchColumn | ( | $col = 0 | ) |
Returns a single column from the next row of a result set.
| int | $col | OPTIONAL Position of the column to fetch. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Oracle, Zend_Db_Statement, Zend_Db_Statement_Pdo, and Zend_Db_Statement_Sqlsrv.
| 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. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Oracle, Zend_Db_Statement, Zend_Db_Statement_Pdo, Zend_Db_Statement_Sqlsrv, and Zend_Db_Statement_Db2.
| getAttribute | ( | $key | ) |
Retrieve a statement attribute.
| string | $key | Attribute name. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement, and Zend_Db_Statement_Pdo.
| 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_Exception |
Implemented in Zend_Db_Statement_Oracle, Zend_Db_Statement_Pdo, Zend_Db_Statement_Sqlsrv, Zend_Db_Statement_Mysqli, and Zend_Db_Statement_Db2.
| rowCount | ( | ) |
Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Oracle, Zend_Db_Statement_Pdo, Zend_Db_Statement_Sqlsrv, Zend_Db_Statement_Mysqli, and Zend_Db_Statement_Db2.
| setAttribute | ( | $key, | |
| $val | |||
| ) |
Set a statement attribute.
| string | $key | Attribute name. |
| mixed | $val | Attribute value. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, and Zend_Db_Statement.
| setFetchMode | ( | $mode | ) |
Set the default fetch mode for this statement.
| int | $mode | The fetch mode. |
| Zend_Db_Statement_Exception |
Implemented in Zend_Db_Statement_Pdo, and Zend_Db_Statement.