/**
  * Sets the data of the FE user of this registration.
  *
  * @param array $userData data of the front-end user, may be empty
  *
  * @return void
  */
 public function setUserData(array $userData)
 {
     parent::setUserData($userData);
 }
 /**
  * Purges our cached seminars array.
  *
  * This function is intended for testing purposes only.
  *
  * @return void
  */
 public static function purgeCachedSeminars()
 {
     self::$cachedSeminars = array();
 }
 /**
  * Retrieves data from an object and returns that data as an array of values. The individual values are already wrapped in
  * double quotes, with the contents having all quotes escaped.
  *
  * @param tx_seminars_registration $model object that will deliver the data
  *
  * @return string[] the data for the keys provided in $keys (may be empty)
  */
 protected function createCsvColumnsForFrontEndUser(tx_seminars_registration $model)
 {
     $csvLines = array();
     foreach ($this->getFrontEndUserFieldKeys() as $key) {
         $csvLines[] = $this->escapeFieldForCsv($model->getUserData($key));
     }
     return $csvLines;
 }
 /**
  * Fills or hides the unregistration notice depending on the notification
  * e-mail type.
  *
  * @param string $helloSubjectPrefix
  *        prefix for the locallang key of the localized hello and subject
  *        string, allowed values are:
  *          - confirmation
  *          - confirmationOnUnregistration
  *          - confirmationOnRegistrationForQueue
  *          - confirmationOnQueueUpdate
  * @param tx_seminars_registration $registration the registration the introduction should be created for
  * @param bool $useHtml whether to send HTML instead of plain text e-mail
  *
  * @return void
  */
 private function fillOrHideUnregistrationNotice($helloSubjectPrefix, tx_seminars_registration $registration, $useHtml)
 {
     $event = $registration->getSeminarObject();
     if ($helloSubjectPrefix === 'confirmationOnUnregistration' || !$event->isUnregistrationPossible()) {
         $this->hideSubparts('unregistration_notice', ($useHtml ? 'html_' : '') . 'field_wrapper');
         return;
     }
     $this->setMarker('unregistration_notice', $this->getUnregistrationNotice($event));
 }
Пример #5
0
 protected function tearDown()
 {
     $GLOBALS['LANG']->lang = $this->backEndLanguageBackup;
     $this->testingFramework->cleanUp();
     tx_seminars_registration::purgeCachedSeminars();
 }