W3cubDocs

/Phalcon 2

Interface Phalcon\Mvc\Model\ResultsetInterface

Phalcon\Mvc\Model\ResultsetInterface initializer

Methods

abstract public int getType ()

Returns the internal type of data retrieval that the resultset is using

abstract public Phalcon\Mvc\ModelInterface getFirst ()

Get first row in the resultset

abstract public Phalcon\Mvc\ModelInterface getLast ()

Get last row in the resultset

abstract public setIsFresh (boolean $isFresh)

Set if the resultset is fresh or an old one cached

abstract public boolean isFresh ()

Tell if the resultset if fresh or an old one cached

abstract public Phalcon\Cache\BackendInterface getCache ()

Returns the associated cache for the resultset

abstract public array toArray ()

Returns a complete resultset as an array, if the resultset has a big number of rows it could consume more memory than currently it does.

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_ResultsetInterface.html