Db/Statement/Pdo/Ibm.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Db
- Subpackage
- Statement
- Version
- $Id$
\Zend_Db_Statement_Pdo_Ibm
Package: Zend_Db\Statement
Returns
Throws
Proxy class to wrap a PDOStatement object for IBM Databases.
Matches the interface of PDOStatement. All methods simply proxy to the
matching method in PDOStatement. PDOExceptions thrown by PDOStatement
are re-thrown as Zend_Db_Statement_Exception.
- Parent(s)
- \Zend_Db_Statement_Pdo < \Zend_Db_Statement
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
_bindParam(mixed $parameter, mixed $variable, mixed $type = null, mixed $length = null, mixed $options = null) : bool
Binds a parameter to the specified variable name.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$parameter | mixed | Name the parameter, either integer or string. |
$variable | mixed | Reference to PHP variable containing the value. |
$type | mixed | OPTIONAL Datatype of SQL parameter. |
$length | mixed | OPTIONAL Length of SQL parameter. |
$options | mixed | OPTIONAL Other options. |
Type | Description |
---|---|
bool |
Exception | Description |
---|---|
\Zend_Db_Statement_Exception |
fetchAll(int $style = null, int $col = null) : array
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'
ParametersName | Type | Description |
---|---|---|
$style | int | OPTIONAL Fetch mode. |
$col | int | OPTIONAL Column number, if fetch mode is by column. |
Type | Description |
---|---|
array | Collection of rows, each in a format by the fetch mode. |
Exception | Description |
---|---|
\Zend_Db_Statement_Exception |