| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function getAllInfosModules() |
||
| 29 | { |
||
| 30 | $modules = $this->em->get("doctrine")->getRepository(Module::class)->findBy([ |
||
| 31 | "active" => true, |
||
| 32 | "displayed" => true |
||
| 33 | ]); |
||
| 34 | $modules_data = []; |
||
| 35 | |||
| 36 | foreach ($modules as $module) { |
||
| 37 | $modules_data[] = [ |
||
| 38 | "name" => $module->getTitle(), |
||
| 39 | "rights" => (array)json_decode(file_get_contents($this->globals->getBaseBundlePath($module->getPackageName()) . "/Resources/json/ribsadmin_rights.json")) |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | |||
| 43 | return $modules_data; |
||
| 44 | } |
||
| 64 | } |