1 | <?php |
||
11 | class NavigateRange |
||
12 | { |
||
13 | /** |
||
14 | * @var Configuration |
||
15 | */ |
||
16 | protected $config; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $left_offset = -1; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $right_offset = -1; |
||
27 | |||
28 | /** |
||
29 | * @param Configuration $config |
||
30 | */ |
||
31 | 11 | public function __construct(Configuration $config) |
|
35 | |||
36 | /** |
||
37 | * @return int |
||
38 | */ |
||
39 | 10 | public function getLeftOffset() |
|
43 | |||
44 | /** |
||
45 | * @return int |
||
46 | */ |
||
47 | 10 | public function getRightOffset() |
|
51 | |||
52 | /** |
||
53 | * @return NavigateRange |
||
54 | */ |
||
55 | 10 | protected function buildOffset() |
|
67 | |||
68 | /** |
||
69 | * Definition of offset to the left and to the right of the selected page. |
||
70 | * |
||
71 | * @return NavigateRange |
||
72 | */ |
||
73 | 10 | protected function definitionOffset() |
|
80 | |||
81 | /** |
||
82 | * Adjustment, if the offset is too large left. |
||
83 | * |
||
84 | * @return NavigateRange |
||
85 | */ |
||
86 | 10 | protected function adjustmentLargeLeftOffset() |
|
96 | |||
97 | /** |
||
98 | * Adjustment, if the offset is too large right. |
||
99 | * |
||
100 | * @return NavigateRange |
||
101 | */ |
||
102 | 10 | protected function adjustmentLargeRightOffset() |
|
116 | |||
117 | /** |
||
118 | * Left offset should point not lower of the first page. |
||
119 | * |
||
120 | * @return NavigateRange |
||
121 | */ |
||
122 | 10 | protected function adjustmentLowerLeftOffset() |
|
130 | } |
||
131 |