Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Result Class Reference

Public Member Functions

 initialize ($resource, $generatedValue, $isBuffered=null)
 Initialize.
 
 buffer ()
 Force buffering.
 
 isBuffered ()
 Check if is buffered.
 
 getResource ()
 Return the resource.
 
 isQueryResult ()
 Is query result?
 
 getAffectedRows ()
 Get affected rows.
 
 current ()
 Current.
 
 next ()
 Next.
 
 key ()
 Key.
 
 rewind ()
 Rewind.
 
 valid ()
 Valid.
 
 count ()
 Count.
 
 getFieldCount ()
 Get field count.
 
 getGeneratedValue ()
 Get generated value.
 

Protected Member Functions

 loadDataFromMysqliStatement ()
 Mysqli's binding and returning of statement values.
 
 loadFromMysqliResult ()
 Load from mysqli result.
 

Protected Attributes

 $resource = null
 
 $isBuffered = null
 
 $position = 0
 
 $numberOfRows = -1
 
 $currentComplete = false
 
 $nextComplete = false
 
 $currentData = false
 
 $statementBindValues = ['keys' => null
 
 $generatedValue = null
 

Member Function Documentation

buffer ( )

Force buffering.

Exceptions
Exception\RuntimeException

Implements ResultInterface.

count ( )

Count.

Exceptions
Exception\RuntimeException
Returns
int
current ( )

Current.

Returns
mixed
getAffectedRows ( )

Get affected rows.

Returns
int

Implements ResultInterface.

getFieldCount ( )

Get field count.

Returns
int

Implements ResultInterface.

getGeneratedValue ( )

Get generated value.

Returns
mixed|null

Implements ResultInterface.

getResource ( )

Return the resource.

Returns
mixed

Implements ResultInterface.

initialize (   $resource,
  $generatedValue,
  $isBuffered = null 
)

Initialize.

Parameters
mixed$resource
mixed$generatedValue
bool | null$isBuffered
Exceptions
Exception\InvalidArgumentException
Returns
Result
isBuffered ( )

Check if is buffered.

Returns
bool|null

Implements ResultInterface.

isQueryResult ( )

Is query result?

Returns
bool

Implements ResultInterface.

key ( )

Key.

Returns
mixed
loadDataFromMysqliStatement ( )
protected

Mysqli's binding and returning of statement values.

Mysqli requires you to bind variables to the extension in order to get data out. These values have to be references:

See Also
http://php.net/manual/en/mysqli-stmt.bind-result.php
Exceptions
Exception\RuntimeException
Returns
bool
loadFromMysqliResult ( )
protected

Load from mysqli result.

Returns
bool
next ( )

Next.

Returns
void
rewind ( )

Rewind.

Exceptions
Exception\RuntimeException
Returns
void
valid ( )

Valid.

Returns
bool

Member Data Documentation

$currentComplete = false
protected
$currentData = false
protected
$generatedValue = null
protected
$isBuffered = null
protected
$nextComplete = false
protected
$numberOfRows = -1
protected
$position = 0
protected
$resource = null
protected
$statementBindValues = ['keys' => null
protected