ResultMysqli

Extends \SYSTEM\DB\Result

Result Class provided by System to hold Database Query Result Ressources of MYSQL Querys.

package

SYSTEM\DB

Methods

Construct the Resultset with a database ressource

__construct(\SYSTEM\DB\ressource $res) 

Arguments

$res

\SYSTEM\DB\ressource

Ressource of the Database Result-Set

Close Resultset upon destruction

__destruct() 

Counts the affected lines in the Resultset

affectedRows() : integer
inherited abstract

Response

integer

Returns number of affected lines in the result

Closes the Resultset

close() : null
inherited abstract

Response

null

Returns null

Counts the Lines in the Resultset

count() : integer
inherited abstract

Response

integer

Returns number of lines in the result

Returns the next line in the Resultset

next(boolean $object = false) : array
inherited abstract

Arguments

$object

boolean

Determines if the result will be an object or array

Response

array

Returns an array(object) containing the next line

Seeks an amount of lines within the Resultset

seek(integer $row_number) : boolean
inherited abstract

Arguments

$row_number

integer

Lines to seek over

Response

boolean

Returns true or false

Properties

ressource Variable to store Database Result-ressource

res : 

Type(s)

ressource Variable to store current Line either as array or object

current : 

Type(s)