Overview

Namespaces

  • zsql
  • PHP

Classes

  • Database
  • Delete
  • Expression
  • ExtendedQuery
  • Insert
  • Model
  • Query
  • Result
  • Select
  • Update

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree

Class Result

Namespace: zsql
Located at zsql/Result.php
Methods summary
public
# __construct( mixed $object )

Constructor

Constructor

Parameters

$object
mixed
$object
public
# __destruct( )

Destructor

Destructor

public
# free( )

Frees the local mysqli_result object, and unsetting it.

Frees the local mysqli_result object, and unsetting it.

public mysqli_result
# getResult( )

Getter function for the local mysqli_result object.

Getter function for the local mysqli_result object.

Returns

mysqli_result
protected zsql\Result
# setResult( mysqli_result $object )

Setter function for the local mysqli_result object.

Setter function for the local mysqli_result object.

Parameters

$object
mysqli_result
$object

Returns

zsql\Result
public string
# getResultClass( )

Get result class

Get result class

Returns

string
public zsql\Result
# setResultClass( string $class )

Set result class

Set result class

Parameters

$class
string
$class

Returns

zsql\Result

Throws

zsql\Exception
public integer
# getResultMode( )

Get current result mode

Get current result mode

Returns

integer
public zsql\Result
# setResultMode( integer $mode )

Set result mode

Set result mode

Parameters

$mode
integer
$mode

Returns

zsql\Result

Throws

zsql\Exception
public mixed
# fetchRow( integer $mode = null )

Fetches a single result row

Fetches a single result row

Parameters

$mode
integer
$mode This optional parameter is a constant indicating what type of result should be produced from the current row data. The possible values for this parameter are the constants FETCH_ASSOC, FETCH_OBJECT, FETCH_COLUMN, or FETCH_NUM.

Returns

mixed
public mixed
# fetchAll( integer $mode = null )

Fetches all result rows

Fetches all result rows

Parameters

$mode
integer
$mode This optional parameter is a constant indicating what type of result should be produced from the current row data. The possible values for this parameter are the constants FETCH_ASSOC, FETCH_OBJECT, FETCH_COLUMN, or FETCH_NUM.

Returns

mixed
public mixed
# fetchColumn( )

Returns a single value from the first result row.

Returns a single value from the first result row.

Returns

mixed
Constants summary
integer FETCH_COLUMN 0
#
integer FETCH_OBJECT 1
#
integer FETCH_ASSOC 2
#
integer FETCH_NUM 3
#
Properties summary
protected mysqli_result $result
#
protected string $resultClass
#
protected integer $resultMode
#
API documentation generated by ApiGen 2.8.0