Simple.php
1.77 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
66
67
68
69
70
71
72
73
74
75
76
77
<?php
namespace Phalcon\Mvc\Model\Resultset {
/**
* Phalcon\Mvc\Model\Resultset\Simple
*
* Simple resultsets only contains complete objects.
* This class builds every complete object as it is required
*/
class Simple extends \Phalcon\Mvc\Model\Resultset implements \Serializable, \ArrayAccess, \Countable, \SeekableIterator, \Traversable, \Iterator, \Phalcon\Mvc\Model\ResultsetInterface {
const TYPE_RESULT_FULL = 0;
const TYPE_RESULT_PARTIAL = 1;
const HYDRATE_RECORDS = 0;
const HYDRATE_OBJECTS = 2;
const HYDRATE_ARRAYS = 1;
protected $_model;
protected $_columnMap;
protected $_keepSnapshots;
/**
* \Phalcon\Mvc\Model\Resultset\Simple constructor
*
* @param array $columnMap
* @param \Phalcon\Mvc\ModelInterface $model
* @param \Phalcon\Db\Result\Pdo $result
* @param \Phalcon\Cache\BackendInterface $cache
* @param boolean $keepSnapshots
*/
public function __construct($columnMap, $model, $result, $cache=null, $keepSnapshots=null){ }
/**
* Check whether the internal resource has rows to fetch
*
* @return boolean
*/
public function valid(){ }
/**
* Returns a complete resultset as an array, if the resultset has a big number of rows
* it could consume more memory than it currently does. Exporting the resultset to an array
* couldn't be faster with a large number of records
*
* @param boolean $renameColumns
* @return array
*/
public function toArray($renameColumns=null){ }
/**
* Serializing a resultset will dump all related rows into a big array
*
* @return string
*/
public function serialize(){ }
/**
* Unserializing a resultset only works on the rows present in the saved state
*
* @param string $data
*/
public function unserialize($data){ }
}
}