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

Public Member Functions

 initialize ($resource, $generatedValue=null)
 
 current ()
 (PHP 5 >= 5.0.0)
Return the current element http://php.net/manual/en/iterator.current.php
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 (PHP 5 >= 5.0.0)
Rewind the Iterator to the first element http://php.net/manual/en/iterator.rewind.php
 
 buffer ()
 Force buffering.
 
 isBuffered ()
 Check if is buffered.
 
 isQueryResult ()
 Is query result?
 
 getAffectedRows ()
 Get affected rows.
 
 getGeneratedValue ()
 Get generated value.
 
 getResource ()
 Get the resource.
 
 getFieldCount ()
 Get field count.
 
 count ()
 

Protected Attributes

 $resource
 
 $position = 0
 
 $currentComplete = false
 
 $currentData = null
 
 $generatedValue = null
 

Member Function Documentation

buffer ( )

Force buffering.

Returns
void

Implements ResultInterface.

count ( )
Returns
null|int
current ( )

(PHP 5 >= 5.0.0)
Return the current element http://php.net/manual/en/iterator.current.php

Returns
mixed Can return any type.
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 ( )

Get the resource.

Returns
mixed

Implements ResultInterface.

initialize (   $resource,
  $generatedValue = null 
)
Parameters
resource$resource
mixed$generatedValue
Returns
Result
isBuffered ( )

Check if is buffered.

Returns
bool|null

Implements ResultInterface.

isQueryResult ( )

Is query result?

Returns
bool

Implements ResultInterface.

key ( )
Returns
int|string
next ( )
Returns
mixed
rewind ( )

(PHP 5 >= 5.0.0)
Rewind the Iterator to the first element http://php.net/manual/en/iterator.rewind.php

Returns
void Any returned value is ignored.
valid ( )
Returns
bool

Member Data Documentation

$currentComplete = false
protected
$currentData = null
protected
$generatedValue = null
protected
$position = 0
protected
$resource
protected