Blame view

src/vendor/1.2.5/Phalcon/Mvc/Model/Resultset/Complex.php 1.51 KB
1ea3b987   Administrator   maby first commit
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
  <?php 
  
  namespace Phalcon\Mvc\Model\Resultset {
  
  	/**
  	 * Phalcon\Mvc\Model\Resultset\Complex
  	 *
  	 * Complex resultsets may include complete objects and scalar values.
  	 * This class builds every complex row as it is required
  	 */
  	
  	class Complex 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 $_columnTypes;
  
  		/**
  		 * \Phalcon\Mvc\Model\Resultset\Complex constructor
  		 *
  		 * @param array $columnsTypes
  		 * @param \Phalcon\Db\ResultInterface $result
  		 * @param \Phalcon\Cache\BackendInterface $cache
  		 */
  		public function __construct($columnsTypes, $result, $cache=null){ }
  
  
  		/**
  		 * Check whether 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 currently it does.
  		 *
  		 * @return array
  		 */
  		public function toArray(){ }
  
  
  		/**
  		 * Serializing a resultset will dump all related rows into a big array
  		 *
  		 * @return string
  		 */
  		public function serialize(){ }
  
  
  		/**
  		 * Unserializing a resultset will allow to only works on the rows present in the saved state
  		 *
  		 * @param string $data
  		 */
  		public function unserialize($data){ }
  
  	}
  }