PHP Class Phalcon\Db\Result\Serializable

Show file Open project: phalcon/incubator

Protected Properties

Property Type Description
$data
$position

Public Methods

Method Description
__construct ( $result ) Class constructor.
__wakeup ( ) Resets the internal pointer
fetch ( ) : array | boolean Fetches a row in the resultset
fetchAll ( ) : array Returns the full data in the resultset
numRows ( ) : integer Returns the number of rows in the internal array
setFetchMode ( integer $fetchMode ) Changes the fetch mode, this is not implemented yet

Method Details

__construct() public method

The resultset is completely fetched
public __construct ( $result )

__wakeup() public method

Resets the internal pointer
public __wakeup ( )

fetch() public method

Fetches a row in the resultset
public fetch ( ) : array | boolean
return array | boolean

fetchAll() public method

Returns the full data in the resultset
public fetchAll ( ) : array
return array

numRows() public method

Returns the number of rows in the internal array
public numRows ( ) : integer
return integer

setFetchMode() public method

Changes the fetch mode, this is not implemented yet
public setFetchMode ( integer $fetchMode )
$fetchMode integer

Property Details

$data protected property

protected $data

$position protected property

protected $position