API Documentation

ZendX/Db/Statement/Firebird.php

Includes |Classes |

Properties

Description

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 license@zend.com so we can send you a copy immediately.


Includes

Zend/Db/Statement.php (Require Once)

Classes

ZendX_Db_Statement_Firebird

Properties

 
 
ZendX  
No 
No 

Description

Extends for Firebird

Methods

_bindParam, _execute, _prepare, close, closeCursor, columnCount, errorCode, errorInfo, fetch, nextRowset, rowCount,

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

Description

Binds a parameter to the specified variable name.

Arguments

Name Type Description Default
$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. null
$length mixed | OPTIONAL Length of SQL parameter. null
$options mixed | OPTIONAL Other options. null

Return value

Type Description
bool

Tags

Name Description
throws ZendX_Db_Statement_Firebird_Exception

_execute( array   $params = null, ) : bool

Description

Executes a prepared statement.

Arguments

Name Type Description Default
$params array | OPTIONAL Values to bind to parameter placeholders. null

Return value

Type Description
bool

Tags

Name Description
throws ZendX_Db_Statement_Firebird_Exception

_prepare( string   $sql, ) : void

Description


Arguments

Name Type Description Default
$sql string |

Return value

Type Description
void

Tags

Name Description
throws ZendX_Db_Statement_Firebird_Exception

close( ) : bool

Description

Closes the cursor and the statement.

Return value

Type Description
bool

closeCursor( ) : bool

Description

Closes the cursor, allowing the statement to be executed again.

Return value

Type Description
bool

columnCount( ) : int

Description

Returns the number of columns in the result set.

Returns null if the statement has no result set metadata.


Return value

Type Description
int The number of columns.

errorCode( ) : string

Description

Retrieves the error code, if any, associated with the last operation on the statement handle.

Return value

Type Description
string error code.

errorInfo( ) : array

Description

Retrieves an array of error information, if any, associated with the last operation on the statement handle.

Return value

Type Description
array

fetch( int   $style = null, int   $cursor = null, int   $offset = null, ) : mixed

Description

Fetches a row from the result set.

Arguments

Name Type Description Default
$style int | OPTIONAL Fetch mode for this fetch operation. null
$cursor int | OPTIONAL Absolute, relative, or other. null
$offset int | OPTIONAL Number for absolute or relative cursors. null

Return value

Type Description
mixed Array, object, or scalar depending on fetch mode.

Tags

Name Description
throws

nextRowset( ) : bool

Description

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.

Return value

Type Description
bool

Tags

Name Description
throws ZendX_Db_Statement_Firebird_Exception

rowCount( ) : int

Description

Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.

Return value

Type Description
int The number of rows affected.

Tags

Name Description
throws

Properties

$_keys, $_meta, $_stmtColumnCount, $_stmtPrepared, $_stmtResult, $_stmtRowCount, $_values,

  protected  $_keys = array

Column names.array


  protected  $_meta = null

array


  protected  $_stmtColumnCount = 0

The firebird_stmtResult resource.firebird_result


  protected  $_stmtPrepared = null

The firebird_stmtPrepared resource.firebird_stmtPrepared


  protected  $_stmtResult = null

The firebird_stmtResult resource.firebird_result


  protected  $_stmtRowCount = 0

The firebird_stmtResult resource.firebird_result


  protected  $_values = array

Fetched result values.array


Documentation was generated by DocBlox.