Loading module/Oscar/src/Oscar/Controller/ActivityMotsClesController.php +12 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Oscar\Controller; use Laminas\Http\Response; use Laminas\View\Model\JsonModel; use Oscar\Entity\ActivityMotCle; use Oscar\Provider\Privileges; use Oscar\Traits\UseLoggerService; use Oscar\Traits\UseLoggerServiceTrait; use Throwable; Loading @@ -15,6 +16,7 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL public function apiAction() { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); try { if ($this->getRequest()->getMethod() == "GET") { Loading Loading @@ -59,6 +61,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function getMotsCles($includeCount) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); /** @var ActivityMotCleRepository $activityMotCleRepository */ $activityMotCleRepository = $this->getEntityManager()->getRepository(ActivityMotCle::class); Loading Loading @@ -89,6 +93,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function createMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("createMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); $motCle = new ActivityMotCle(); Loading @@ -104,6 +110,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function deleteMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("deleteMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading @@ -124,6 +132,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function updateMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("updateMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading @@ -145,6 +155,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function fusionnerMotsCles($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("fusionMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading module/Oscar/src/Oscar/Controller/AdministrationController.php +1 −0 Original line number Diff line number Diff line Loading @@ -766,6 +766,7 @@ class AdministrationController extends AbstractOscarController implements UsePro public function motsclesAction() { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); return []; } Loading Loading
module/Oscar/src/Oscar/Controller/ActivityMotsClesController.php +12 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Oscar\Controller; use Laminas\Http\Response; use Laminas\View\Model\JsonModel; use Oscar\Entity\ActivityMotCle; use Oscar\Provider\Privileges; use Oscar\Traits\UseLoggerService; use Oscar\Traits\UseLoggerServiceTrait; use Throwable; Loading @@ -15,6 +16,7 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL public function apiAction() { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); try { if ($this->getRequest()->getMethod() == "GET") { Loading Loading @@ -59,6 +61,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function getMotsCles($includeCount) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); /** @var ActivityMotCleRepository $activityMotCleRepository */ $activityMotCleRepository = $this->getEntityManager()->getRepository(ActivityMotCle::class); Loading Loading @@ -89,6 +93,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function createMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("createMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); $motCle = new ActivityMotCle(); Loading @@ -104,6 +110,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function deleteMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("deleteMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading @@ -124,6 +132,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function updateMotCle($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("updateMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading @@ -145,6 +155,8 @@ class ActivityMotsClesController extends AbstractOscarController implements UseL private function fusionnerMotsCles($action_mot_cle_json) { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); $this->getLoggerService()->info("fusionMotCle"); $this->getLoggerService()->info("by: " . $this->getCurrentPerson()); Loading
module/Oscar/src/Oscar/Controller/AdministrationController.php +1 −0 Original line number Diff line number Diff line Loading @@ -766,6 +766,7 @@ class AdministrationController extends AbstractOscarController implements UsePro public function motsclesAction() { $this->getOscarUserContextService()->check(Privileges::MAINTENANCE_DISCIPLINE_MANAGE); return []; } Loading