1 | <?php |
||
13 | class RepeaterPageView extends BasePageView implements TemplateReadyDocument |
||
14 | { |
||
15 | /** @var \ArrayIterator An iterator for the permalinks used in order for this entity to be treated as a static PageView. */ |
||
16 | private $permalinksIterator; |
||
17 | |||
18 | /** @var ExpandedValue[] All of the expanded permalinks. */ |
||
19 | private $permalinks; |
||
20 | |||
21 | /** @var ExpandedValue[][] All of expanded redirects that should point to the respective permalink; this is estimated by index. */ |
||
22 | private $redirectLinks; |
||
23 | |||
24 | /** |
||
25 | * RepeaterPageView constructor. |
||
26 | */ |
||
27 | 2 | public function __construct(File $file) |
|
35 | |||
36 | /** |
||
37 | * Get the expanded values for the permalinks to this PageView. |
||
38 | * |
||
39 | * @return ExpandedValue[] |
||
40 | */ |
||
41 | 2 | public function getRepeaterPermalinks() |
|
45 | |||
46 | /** |
||
47 | * Get the expanded values for the redirects pointing to this PageView. |
||
48 | * |
||
49 | * @return ExpandedValue[][] |
||
50 | */ |
||
51 | 2 | public function getRepeaterRedirects() |
|
55 | |||
56 | /** |
||
57 | * When looping through permalinks in a RepeaterPageView, the permalink needs to be updated each time so that it may |
||
58 | * behave as a static PageView. |
||
59 | */ |
||
60 | 2 | public function bumpPermalink() |
|
65 | |||
66 | /** |
||
67 | * Rewind the permalink iterator to the beginning. |
||
68 | */ |
||
69 | 2 | public function rewindPermalink() |
|
73 | |||
74 | /** |
||
75 | * Configure permalinks from expanded values internally. |
||
76 | */ |
||
77 | 2 | private function configurePermalinks() |
|
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | 2 | public function buildPermalink($force = false) |
|
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | 2 | public function createJail() |
|
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function jsonSerialize() |
||
114 | } |
||
115 |