Example #1
0
 public function collectData(IdentifiableInterface $root)
 {
     if ($root instanceof Project) {
         $this->data = $this->repo->fetchParticipantsOverTime($root);
     } elseif ($root instanceof Area) {
         $this->data = $this->repo->fetchAreaParticipantsOverTime($root);
     }
     return true;
 }
 public function collectData(IdentifiableInterface $root)
 {
     $this->data = $this->enhanceData($this->repo->countParticipantsOnRoutes($root));
     return true;
 }
 public function collectData(IdentifiableInterface $root)
 {
     $this->data = $this->repo->fetchBiggestAreasByParticipants($root, self::SHOW_MAX);
     return true;
 }
 public function collectData(IdentifiableInterface $root)
 {
     $this->data = $this->enhanceData($this->repo->countWhereLearntGrouped($root));
     return true;
 }
 public function collectData(IdentifiableInterface $root)
 {
     $this->data = $this->repo->fetchAreaRequestTimeData($root);
     return true;
 }
 public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null)
 {
     return $this->templating->render('CantigaCoreBundle:Project:project-summary.html.twig', ['data' => $this->repository->fetchProjectSummary($project)]);
 }