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 | 3 | public function __construct(File $file) |
|
33 | |||
34 | /** |
||
35 | * Get the permalink matching all the placeholders for a Repeater. |
||
36 | * |
||
37 | * @param array $where |
||
38 | * |
||
39 | * @return null|string |
||
40 | */ |
||
41 | public function _getPermalinkWhere(array $where) |
||
53 | |||
54 | /** |
||
55 | * Get the expanded values for the permalinks to this PageView. |
||
56 | * |
||
57 | * @return ExpandedValue[] |
||
58 | */ |
||
59 | 3 | public function getRepeaterPermalinks() |
|
63 | |||
64 | /** |
||
65 | * Get the expanded values for the redirects pointing to this PageView. |
||
66 | * |
||
67 | * @return ExpandedValue[][] |
||
68 | */ |
||
69 | 3 | public function getRepeaterRedirects() |
|
73 | |||
74 | /** |
||
75 | * When looping through permalinks in a RepeaterPageView, the permalink needs to be updated each time so that it may |
||
76 | * behave as a static PageView. |
||
77 | */ |
||
78 | 3 | public function bumpPermalink() |
|
83 | |||
84 | /** |
||
85 | * Rewind the permalink iterator to the beginning. |
||
86 | */ |
||
87 | 3 | public function rewindPermalink() |
|
91 | |||
92 | /** |
||
93 | * Configure permalinks from expanded values internally. |
||
94 | */ |
||
95 | 3 | public function configurePermalinks() |
|
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | 3 | public function buildPermalink($force = false) |
|
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | 3 | public function createJail() |
|
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | public function jsonSerialize() |
||
132 | } |
||
133 |