/** * Display path player * @param \Innova\PathBundle\Entity\Path\Path $path * @return array * * @Route( * "/{id}", * name = "innova_path_player_wizard", * defaults = { "stepId" = null }, * options = { "expose" = true } * ) * @Template("InnovaPathBundle:Wizard:player.html.twig") */ public function displayAction(Path $path) { // Check User credentials $this->pathManager->checkAccess('OPEN', $path); $resourceIcons = $this->om->getRepository('ClarolineCoreBundle:Resource\\ResourceIcon')->findByIsShortcut(false); return array('_resource' => $path, 'userProgression' => $this->pathManager->getUserProgression($path), 'resourceIcons' => $resourceIcons, 'editEnabled' => $this->pathManager->isAllow('EDIT', $path)); }
/** * Display path player. * * @param \Innova\PathBundle\Entity\Path\Path $path * * @return array * * @Route( * "/{id}", * name = "innova_path_player_wizard", * options = { "expose" = true } * ) * @Template("InnovaPathBundle:Wizard:player.html.twig") */ public function displayAction(Path $path) { // Check User credentials $this->pathManager->checkAccess('OPEN', $path); return ['_resource' => $path, 'workspace' => $path->getWorkspace(), 'userProgression' => $this->pathManager->getUserProgression($path), 'editEnabled' => $this->pathManager->isAllow('EDIT', $path), 'totalProgression' => $this->userProgressionManager->calculateUserProgressionInPath($path)]; }