示例#1
0
 public function __construct(Area $area, ProjectAreaRepository $repository)
 {
     $this->area = $area;
     $this->repository = $repository;
     $this->name = $this->area->getName();
     $this->territory = $this->area->getTerritory();
     $this->customData = $this->area->getCustomData();
 }
示例#2
0
 protected function performResults($courseInfoPage, $profilePage, Area $area, Request $request)
 {
     $repository = $this->get(self::REPOSITORY_NAME);
     $text = $this->getTextRepository()->getText(CourseTexts::AREA_COURSE_LIST_TEXT, $request);
     $this->breadcrumbs()->link($area->getName(), $this->crudInfo->getInfoPage(), ['id' => $area->getId(), 'slug' => $this->getSlug()]);
     return $this->render($this->crudInfo->getTemplateLocation() . 'other-individual-results.html.twig', array('pageSubtitle' => $this->crudInfo->getPageSubtitle(), 'courseInfoPage' => $courseInfoPage, 'userProfilePage' => $profilePage, 'area' => $area, 'items' => $repository->findTotalIndividualResultsForArea($area), 'indexPage' => $this->crudInfo->getIndexPage()));
 }