Class Phalcon\Mvc\Model\Row

implements ArrayAccess, Countable, Phalcon\Mvc\Model\ResultInterface

This component allows Phalcon\Mvc\Model to return rows without an associated entity. This objects implements the ArrayAccess interface to allow access the object as object->x or array[x].

Methods

public setDirtyState (int $dirtyState)

Set the current object’s state

public boolean offsetExists (int $index)

Checks whether offset exists in the row

public string|PhalconMvcModelInterface offsetGet (int $index)

Gets a record in a specific position of the row

public offsetSet (int $index, Phalcon\Mvc\ModelInterface $value)

Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface

public offsetUnset (int $offset)

Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface

public array toArray ()

Returns the instance as an array representation

public int count ()

Counts how many properties were added to the row

© 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_Row.html