API Documentation

Db/Statement/Mysqli.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Db
subpackage
Statement
version
$Id: Mysqli.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Db_Statement_Mysqli

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.

Zend_Db_Statement_Mysqli

Extends from
Zend_Db_Statement
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Db
subpackage
Statement
Properties
$_keys
$_values
$_meta
Methods
_prepare
_bindParam
close
closeCursor
columnCount
errorCode
errorInfo
_execute
fetch
nextRowset
rowCount

Description

Extends for Mysqli

Properties

$_keys

array $_keys = ''

Column names.

Details

$_keys
array
visibility
protected
default
final
false
static
false

$_meta

array $_meta = 'null'

Details

$_meta
array
visibility
protected
default
null
final
false
static
false

$_values

array $_values = ''

Fetched result values.

Details

$_values
array
visibility
protected
default
final
false
static
false

Methods

_bindParam

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

Binds a parameter to the specified variable name.

Arguments
$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.
Output
bool
Details
visibility
protected
final
false
static
false
throws

_execute

_execute( array $params = null ) : bool

Executes a prepared statement.

Arguments
$params
array
OPTIONAL Values to bind to parameter placeholders.
Output
bool
Details
visibility
public
final
false
static
false
throws

_prepare

_prepare( string $sql ) : void

Arguments
$sql
string
Details
visibility
public
final
false
static
false
throws

close

close( ) : bool

Closes the cursor and the statement.

Output
bool
Details
visibility
public
final
false
static
false

closeCursor

closeCursor( ) : bool

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

Output
bool
Details
visibility
public
final
false
static
false

columnCount

columnCount( ) : int

Returns the number of columns in the result set.

Returns null if the statement has no result set metadata.

Output
int
The number of columns.
Details
visibility
public
final
false
static
false

errorCode

errorCode( ) : string

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

Output
string
error code.
Details
visibility
public
final
false
static
false

errorInfo

errorInfo( ) : array

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

Output
array
Details
visibility
public
final
false
static
false

fetch

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

Fetches a row from the result set.

Arguments
$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.
Output
mixed
Array, object, or scalar depending on fetch mode.
Details
visibility
public
final
false
static
false
throws

nextRowset

nextRowset( ) : bool

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.

Output
bool
Details
visibility
public
final
false
static
false
throws

rowCount

rowCount( ) : int

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

Output
int
The number of rows affected.
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.