Exemplo n.º 1
0
 /**
  * action show
  *
  * @param \Subugoe\Substaff\Domain\Model\Group $group
  */
 public function showAction(\Subugoe\Substaff\Domain\Model\Group $group)
 {
     $this->pageRenderer->setTitle($group->getTitle());
     // group's name should be shown as title
     $GLOBALS['TSFE']->page['title'] = $group->getTitle();
     $people = $this->personRepository->findGroupMembers($group);
     $projects = $this->projectRepository->findProjectsByGroups($group->getUid());
     if ($group->getParentGroup() === null) {
         $subGroups = $this->groupRepository->findByParentGroup($group->getUid());
         $this->view->assign('subGroups', $subGroups);
     }
     if ($this->settings['groupDetailTeaser']) {
         $this->view->assign('showTeaser', $this->settings['groupDetailTeaser'])->assign('teaserLength', $this->settings['groupDetailTeaserLength']);
     }
     $this->view->assign('group', $group)->assign('people', $people)->assign('projects', $projects);
 }
Exemplo n.º 2
0
 /**
  * Show selected person's entry for displaying it
  *
  */
 public function showSelectedAction()
 {
     /** @var int $position */
     $position = $this->configurationManager->getContentObject()->data['colPos'];
     $templateChosen = intval($this->settings['chooseTemplate']);
     $selectedPeople = GeneralUtility::intExplode(',', $this->settings['showPeople']);
     $persons = $this->personRepository->findPeopleInList($selectedPeople);
     $this->view->assign('persons', $persons)->assign('position', $position)->assign('showOrganizationalDetails', $this->settings['showOrganizationalDetails'])->assign('template', $templateChosen);
 }