コード例 #1
0
 /**
  * The cleanup command
  *
  * @return void
  */
 public function cleanupCommand()
 {
     $fullSettings = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT, 'SfEventMgt', 'Pievent');
     $settings = $fullSettings['plugin.']['tx_sfeventmgt.']['settings.'];
     $this->registrationService->handleExpiredRegistrations($settings['registration.']['deleteExpiredRegistrations']);
     $pidList = explode(',', $settings['clearCacheUids']);
     $this->cacheService->clearPageCache($pidList);
 }
コード例 #2
0
 /**
  * The cleanup command
  *
  * @return void
  */
 public function cleanupCommand()
 {
     $fullSettings = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT, 'SfEventMgt', 'Pievent');
     $settings = $fullSettings['plugin.']['tx_sfeventmgt.']['settings.'];
     $this->registrationService->handleExpiredRegistrations($settings['registration.']['deleteExpiredRegistrations']);
     // Clear cache for configured pages
     $this->utilityService->clearCacheForConfiguredUids($settings);
 }
コード例 #3
0
 /**
  * @test
  */
 public function handleExpiredRegistrationsWithDeleteOption()
 {
     $registration = $this->getMock('DERHANSEN\\SfEventMgt\\Domain\\Model\\Registration', array(), array(), '', FALSE);
     /** @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage $registrations */
     $registrations = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $registrations->attach($registration);
     $registrationRepository = $this->getMock('DERHANSEN\\SfEventMgt\\Domain\\Repository\\RegistrationRepository', array('findExpiredRegistrations', 'remove'), array(), '', FALSE);
     $registrationRepository->expects($this->once())->method('findExpiredRegistrations')->will($this->returnValue($registrations));
     $registrationRepository->expects($this->once())->method('remove');
     $this->inject($this->subject, 'registrationRepository', $registrationRepository);
     $this->subject->handleExpiredRegistrations(TRUE);
 }
コード例 #4
0
 /**
  * Calls the handleExpiredRegistrations Service
  *
  * @return void
  */
 public function handleExpiredRegistrationsAction()
 {
     $this->registrationService->handleExpiredRegistrations($this->settings['registration']['deleteExpiredRegistrations']);
     $this->redirect('list', 'Administration', 'SfEventMgt', array('demand' => NULL, 'messageId' => 1));
 }