コード例 #1
0
 protected function findOrganizationByLogin()
 {
     $feUserId = $GLOBALS['TSFE']->fe_user->user['uid'];
     /** @var  $organization  \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult */
     $organization = $this->organizationRepository->findByFeusername($feUserId);
     if ($organization->count() > 0) {
         return $organization->getFirst();
     } else {
         return null;
     }
 }
コード例 #2
0
 /**
  * @param \MUM\BjrFreizeit\Domain\Model\Leisure $leisure
  *
  */
 public function successUpdateAction(\MUM\BjrFreizeit\Domain\Model\Leisure $leisure)
 {
     $typoScript = $this->getFullTypoScript();
     $msg = $GLOBALS['TSFE']->fe_user->getKey("ses", "leisureChange");
     $this->setFlashMessage($msg);
     $GLOBALS['TSFE']->fe_user->setKey("ses", "leisureChange", '');
     $params = array('leisure' => $leisure, 'organization' => $this->organizationRepository->findByLeisure($leisure), 'leisureImagePath' => isset($typoScript['plugin.']['tx_bjr_lend.']['settings.']['leisureImagePath']) ? $typoScript['plugin.']['tx_bjr_lend.']['settings.']['leisureImagePath'] : 'uploads/tx_bjrlend/', 'tagList' => $this->tagsRepository->findAll()->toArray(), 'targetGroupList' => $this->targetGroupRepository->findAll()->toArray(), 'countryList' => $this->countryRepository->findAll()->toArray(), 'holidayList' => $this->holidayRepository->findAll()->toArray(), 'organizationList' => $this->organizationRepository->findAll()->toArray(), 'currentPageId' => $GLOBALS['TSFE']->id);
     $this->view->assignMultiple($params);
 }
コード例 #3
0
 public function extendedSearchAction()
 {
     $params = array('countryList' => $this->countryRepository->findAll(), 'locationList' => $this->getSelectLocationList(), 'organizationList' => $this->organizationRepository->findAll(), 'searchForm' => GeneralUtility::makeInstance('MUM\\BjrFreizeit\\Utility\\LeisureSearchForm'));
     $this->view->assignMultiple($params);
 }