-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuerySetResultRedux.php
More file actions
43 lines (35 loc) · 924 Bytes
/
QuerySetResultRedux.php
File metadata and controls
43 lines (35 loc) · 924 Bytes
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
<?php
/**
* PerfORM - Object-relational mapping based on David Grudl's dibi
*
* @copyright Copyright (c) 2010 Eduard 'edke' Kracmar
* @license no license set at this point
* @link http://perform.local :-)
* @category QuerySet
* @package PerfORM
*/
/**
* QuerySetResultRedux
*
* ....
*
* @copyright Copyright (c) 2010 Eduard 'edke' Kracmar
* @package PerfORM
*/
class QuerySetResultRedux extends QuerySetResult
{
protected $resultClassName;
public function __construct(DibiResult $result, $modelName, $resultClassName)
{
$this->result= $result;
$this->modelName= $modelName;
$this->resultClassName= $resultClassName;
}
final public function getIterator($offset = NULL, $limit = NULL)
{
return new QuerySetResultReduxIterator($this, $offset, $limit);
}
final public function getResultClassName() {
return $this->resultClassName;
}
}