PHP Class CI_DB_mysqli_result, TastyIgniter

This class extends the parent result class: CI_DB_result
Author: ExpressionEngine Dev Team
Inheritance: extends CI_DB_result
Mostra file Open project: tastyigniter/tastyigniter

Public Methods

Method Description
data_seek ( integer $n ) : boolean Data Seek
field_data ( ) : array Field data
free_result ( ) : void Free the result
list_fields ( ) : array Fetch Field Names
num_fields ( ) : integer Number of fields in the result set
num_rows ( ) : integer Number of rows in the result set

Protected Methods

Method Description
_fetch_assoc ( ) : array Result - associative array
_fetch_object ( string $class_name = 'stdClass' ) : object Result - object

Method Details

_fetch_assoc() protected method

Returns the result set as an array
protected _fetch_assoc ( ) : array
return array

_fetch_object() protected method

Returns the result set as an object
protected _fetch_object ( string $class_name = 'stdClass' ) : object
$class_name string
return object

data_seek() public method

Moves the internal pointer to the desired offset. We call this internally before fetching results to make sure the result set starts at zero.
public data_seek ( integer $n ) : boolean
$n integer
return boolean

field_data() public method

Generates an array of objects containing field meta-data
public field_data ( ) : array
return array

free_result() public method

Free the result
public free_result ( ) : void
return void

list_fields() public method

Generates an array of column names
public list_fields ( ) : array
return array

num_fields() public method

Number of fields in the result set
public num_fields ( ) : integer
return integer

num_rows() public method

Number of rows in the result set
public num_rows ( ) : integer
return integer