@@ 79-94 (lines=16) @@ | ||
76 | * @param integer $limit |
|
77 | * @param integer $total |
|
78 | */ |
|
79 | public function __construct( |
|
80 | $inline, |
|
81 | $route, |
|
82 | array $parameters = array(), |
|
83 | $offset, |
|
84 | $limit, |
|
85 | $total = null, |
|
86 | $offsetParameterName = null, |
|
87 | $limitParameterName = null, |
|
88 | $absolute = false |
|
89 | ) { |
|
90 | parent::__construct($inline, $route, $parameters, $limit, $total, $limitParameterName, $absolute); |
|
91 | ||
92 | $this->offset = $offset; |
|
93 | $this->offsetParameterName = $offsetParameterName ?: 'offset'; |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * @return int |
@@ 82-99 (lines=18) @@ | ||
79 | */ |
|
80 | private $pageParameterName; |
|
81 | ||
82 | public function __construct( |
|
83 | $inline, |
|
84 | $route, |
|
85 | array $parameters = array(), |
|
86 | $page, |
|
87 | $limit, |
|
88 | $pages, |
|
89 | $pageParameterName = null, |
|
90 | $limitParameterName = null, |
|
91 | $absolute = false, |
|
92 | $total = null |
|
93 | ) { |
|
94 | parent::__construct($inline, $route, $parameters, $limit, $total, $limitParameterName, $absolute); |
|
95 | ||
96 | $this->page = $page; |
|
97 | $this->pages = $pages; |
|
98 | $this->pageParameterName = $pageParameterName ?: 'page'; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * @return int |