Row.php
1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
namespace Phalcon\Mvc\Model {
/**
* Phalcon\Mvc\Model\Row
*
* 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].
*/
class Row implements \ArrayAccess, \Phalcon\Mvc\Model\ResultInterface {
/**
* Set the current object's state
*
* @param int $dirtyState
*/
public function setDirtyState($dirtyState){ }
/**
* Checks whether offset exists in the row
*
* @param int $index
* @return boolean
*/
public function offsetExists($index){ }
/**
* Gets a record in a specific position of the row
*
* @param int $index
* @return string|\Phalcon\Mvc\ModelInterface
*/
public function offsetGet($index){ }
/**
* Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
*
* @param int $index
* @param \Phalcon\Mvc\ModelInterface $value
*/
public function offsetSet($index, $value){ }
/**
* Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
*
* @param int $offset
*/
public function offsetUnset($offset){ }
/**
* Returns the instance as an array representation
*
* @return array
*/
public function toArray(){ }
}
}