Class db_recordset
Wraps a mysqli_result and acts mostly as a pass-through to hide the
underlying implementation should the recommended PHP method of database
interaction change again - note: this class should really be used alongside
'select' queries, not 'update', 'delete', or 'insert'..
Namespace: ski
Located at packages/ski.web/services/ski.service.db.php
Methods summary
public
|
#
__construct( mysqli_result $result )
Constructs a new result..
Constructs a new result..
Parameters
- $result
mysqli_result $result
|
public
|
#
__destruct( )
Frees the result when out of scope..
Frees the result when out of scope..
|
public
type
|
#
num_recs( )
Retrieves the number of records in this recordset..
Retrieves the number of records in this recordset..
Returns
type
|
public
mixed
|
#
next( boolean $as_obj = false )
Enumerates the next record in this recordset..
Enumerates the next record in this recordset..
Parameters
- $as_obj
boolean $as_obj Set to true if you would like records to be returned as objects instead
of an associative array; defaults to the array
Returns
mixed Could be an object or associative array based on initial setting
|
public
mysqli_result
|
#
get_mysqli_result( )
Gets at the underlying mysqli_result for direct access; for example, could
use this to call \mysqli::prepare..
Gets at the underlying mysqli_result for direct access; for example, could
use this to call \mysqli::prepare..
Returns
mysqli_result
|
Magic methods summary