1 | <?php |
||
17 | class ViewRepository extends NestedTreeRepository |
||
18 | { |
||
19 | use StateFullRepositoryTrait; |
||
20 | |||
21 | protected $mainAlias = 'view'; |
||
22 | |||
23 | /** |
||
24 | * Filter the query by the sitemap index (=visibility). |
||
25 | * |
||
26 | * @param bool $indexed |
||
27 | * |
||
28 | * @return ViewRepository |
||
29 | */ |
||
30 | public function filterBySitemapIndexed($indexed = true) |
||
39 | |||
40 | /** |
||
41 | * Get all rentals in the repository. |
||
42 | * |
||
43 | * @param bool $excludeUnpublished Should we get only the published Views ? |
||
44 | * |
||
45 | * @return ViewRepository |
||
46 | */ |
||
47 | public function getAll($excludeUnpublished = false) |
||
63 | |||
64 | /** |
||
65 | * Find a large amount of views by ViewReferences. |
||
66 | * |
||
67 | * @param ViewReference[] $viewReferences |
||
68 | * |
||
69 | * @return View[]|null The entity instance or NULL if the entities cannot be found. |
||
70 | */ |
||
71 | public function findByViewReferences(array $viewReferences) |
||
102 | |||
103 | /** |
||
104 | * Get the the view that is a aage and a published one. |
||
105 | * |
||
106 | * @param string $locale |
||
107 | * |
||
108 | * @return Page |
||
109 | */ |
||
110 | public function findOneByHomepage($locale = 'fr') |
||
126 | |||
127 | /** |
||
128 | * Get PageSeo. |
||
129 | * |
||
130 | * @param string $method leftJoin|innerJoin |
||
131 | * |
||
132 | * @return ViewRepository |
||
133 | */ |
||
134 | public function joinSeo($method = 'leftJoin') |
||
140 | |||
141 | /** |
||
142 | * Join PageSeoTranslation to PageSeo for a locale. |
||
143 | * |
||
144 | * @param string $locale |
||
145 | * |
||
146 | * @return ViewRepository |
||
147 | */ |
||
148 | public function joinSeoTranslations($locale) |
||
156 | |||
157 | /** |
||
158 | * Join ViewTranslation for a locale. |
||
159 | * |
||
160 | * @param string $locale |
||
161 | * |
||
162 | * @return ViewRepository |
||
163 | */ |
||
164 | public function joinTranslations($locale) |
||
172 | |||
173 | /** |
||
174 | * Filter the query by the sitemap index (=visibility). |
||
175 | * |
||
176 | * @param array $ids |
||
177 | * |
||
178 | * @return ViewRepository |
||
179 | */ |
||
180 | public function filterByIds($ids) |
||
186 | } |
||
187 |