Db/Statement/Firebird.php
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 license@zend.com so we can send you a copy immediately.
- Category
- ZendX
- Copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- ZendX_Db
- Subpackage
- Statement
- Version
- $Id: $
\ZendX_Db_Statement_Firebird
- Parent(s)
- \Zend_Db_Statement
- Category
- ZendX
- Copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

\firebird_result $_stmtColumnCount = 00Details- Type
- \firebird_result

\firebird_stmtPrepared $_stmtPrepared = nullnullDetails- Type
- \firebird_stmtPrepared

\firebird_result $_stmtResult = nullnullDetails- Type
- \firebird_result

\firebird_result $_stmtRowCount = 00Details- Type
- \firebird_result
Methods

_bindParam(mixed $parameter, mixed $variable, mixed $type = null, mixed $length = null, mixed $options = null) : boolBinds a parameter to the specified variable name.
| 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 |
|---|---|
| \ZendX_Db_Statement_Firebird_Exception |

_execute(array $params = null) : boolExecutes a prepared statement.
| Name | Type | Description |
|---|---|---|
| $params | array | OPTIONAL Values to bind to parameter placeholders. |
| Type | Description |
|---|---|
| bool |
| Exception | Description |
|---|---|
| \ZendX_Db_Statement_Firebird_Exception |

_prepare(string $sql) : void| Name | Type | Description |
|---|---|---|
| $sql | string |
| Exception | Description |
|---|---|
| \ZendX_Db_Statement_Firebird_Exception |

closeCursor() : boolCloses the cursor, allowing the statement to be executed again.
| Type | Description |
|---|---|
| bool |

columnCount() : intReturns the number of columns in the result set.
Returns null if the statement has no result set metadata.
| Type | Description |
|---|---|
| int | The number of columns. |

errorCode() : stringRetrieves the error code, if any, associated with the last operation on the statement handle.
| Type | Description |
|---|---|
| string | error code. |

errorInfo() : arrayRetrieves an array of error information, if any, associated with the last operation on the statement handle.
| Type | Description |
|---|---|
| array |

fetch(int $style = null, int $cursor = null, int $offset = null) : mixedFetches a row from the result set.
| Name | Type | Description |
|---|---|---|
| $style | int | OPTIONAL Fetch mode for this fetch operation. |
| $cursor | int | OPTIONAL Absolute, relative, or other. |
| $offset | int | OPTIONAL Number for absolute or relative cursors. |
| Type | Description |
|---|---|
| mixed | Array, object, or scalar depending on fetch mode. |
| Exception | Description |
|---|---|
| \Zend_Db_Statement_Exception |

nextRowset() : boolRetrieves 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.
| Type | Description |
|---|---|
| bool |
| Exception | Description |
|---|---|
| \ZendX_Db_Statement_Firebird_Exception |