Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class NavigationRepository extends EntityRepository |
||
9 | { |
||
10 | /** |
||
11 | * function that return all navigation links of pages and modules |
||
12 | * @return array |
||
13 | * @throws DBALException |
||
14 | */ |
||
15 | public function findAllNavigation(): array |
||
16 | { |
||
17 | $query = $this->getEntityManager()->getConnection()->prepare("SELECT p.url, p.title, p.title_tag FROM navigation n |
||
18 | LEFT JOIN page p ON n.id_page = p.id AND p.displayed = 1 |
||
19 | LEFT JOIN module m ON n.id_module = m.id AND m.displayed = 1 |
||
20 | ORDER BY n.order ASC |
||
21 | "); |
||
22 | |||
23 | $query->execute(); |
||
24 | |||
25 | return $query->fetchAll(\PDO::FETCH_ASSOC); |
||
|
|||
26 | } |
||
27 | |||
28 | /** |
||
29 | * function that return all navigation links of pages |
||
30 | * @return array |
||
31 | * @throws DBALException |
||
32 | */ |
||
33 | public function findAllNavigationPage(): array |
||
43 | } |
||
44 | } |
||
45 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.