Table Of Contents

Previous topic

< Interface Phalcon\Mvc\Model\ResultInterface

Next topic

Interface Phalcon\Mvc\Model\TransactionInterface >

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.