/** * @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); }
/** * @return array * @throws Exception */ protected function getArticlePagesList() { $pageList = array(); if ($this->settings['pidOrganizationFolder'] > 0) { $organizations = $this->organizationRepository->findAll(); $usedLeisureFolderPids = array(); /** @var $organization \MUM\BjrFreizeit\Domain\Model\Organization $organization */ foreach ($organizations as $organization) { $usedLeisureFolderPids[] = $organization->getLeisureFolderPid(); } $ret = $this->pageRepository->getMenu($this->settings['pidOrganizationFolder'], '*', 'sorting', 'AND deleted =0 AND hidden = 0'); foreach ($ret as $pageUid => $row) { if (!in_array($pageUid, $usedLeisureFolderPids)) { $pageList[$pageUid] = $row['title']; } } } else { throw new Exception('PID für Seite mit Anbieter ist nicht gesetzt.'); } return $pageList; }
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); }