Esempio n. 1
0
 function getEnddate()
 {
     $end = $this->getEnd();
     return $end->format(\TYPO3\CMS\Cal\Utility\Functions::getFormatStringFromConf($this->parentEvent->conf));
 }
Esempio n. 2
0
 function getUntilMarker(&$template, &$sims, &$rems)
 {
     $sims['###UNTIL###'] = '';
     if ($this->isAllowed('recurring')) {
         $untilDate = $this->object->getUntil();
         if (is_object($untilDate)) {
             $untilDateFormatted = '';
             $sims['###UNTIL_VALUE###'] = '';
             if ($untilDate->getYear() > 0) {
                 $split = $this->conf['dateConfig.']['splitSymbol'];
                 $untilDateFormatted = $untilDate->format(\TYPO3\CMS\Cal\Utility\Functions::getFormatStringFromConf($this->conf));
                 $dateFormatArray = explode($this->conf['dateConfig.']['splitSymbol'], $untilDateFormatted);
                 $sims['###UNTIL_VALUE###'] = htmlspecialchars($dateFormatArray[$this->conf['dateConfig.']['yearPosition']] . $dateFormatArray[$this->conf['dateConfig.']['monthPosition']] . $dateFormatArray[$this->conf['dateConfig.']['dayPosition']]);
             }
             $sims['###UNTIL###'] = $this->applyStdWrap($untilDateFormatted, 'until_stdWrap');
         }
     }
 }
Esempio n. 3
0
 function getUntilMarker(&$template, &$sims, &$rems)
 {
     $sims['###UNTIL###'] = '';
     if ($this->isAllowed('recurring')) {
         $until = $this->object->getUntil();
         if (is_object($until) && $until->getYear() != 0) {
             $untilValue = $until->format(\TYPO3\CMS\Cal\Utility\Functions::getFormatStringFromConf($this->conf));
             $sims['###UNTIL###'] = $this->applyStdWrap($untilValue, 'until_stdWrap');
         } else {
             $sims['###UNTIL###'] = $this->applyStdWrap('', 'until_stdWrap');
         }
     }
 }
Esempio n. 4
0
 public function getStartAndEnd(&$page, &$sims, &$rems, $view)
 {
     $outputFormat = \TYPO3\CMS\Cal\Utility\Functions::getFormatStringFromConf($this->conf);
     if (!$this->controller->piVars['submit']) {
         $date = $this->controller->getListViewTime($this->conf['view.']['search.']['defaultValues.']['start_day']);
         $sims['###EVENT_START_DAY###'] = $date->format($outputFormat);
         $date = $this->controller->getListViewTime($this->conf['view.']['search.']['defaultValues.']['end_day']);
         $sims['###EVENT_END_DAY###'] = $date->format($outputFormat);
     } else {
         if (intval($this->controller->piVars['start_day']) == 0) {
             $sims['###EVENT_START_DAY###'] = $this->starttime->format($outputFormat);
         } else {
             $sims['###EVENT_START_DAY###'] = htmlspecialchars(strip_tags($this->controller->piVars['start_day']));
         }
         if (intval($this->controller->piVars['end_day']) == 0) {
             $sims['###EVENT_END_DAY###'] = $this->endtime->format($outputFormat);
         } else {
             $sims['###EVENT_END_DAY###'] = htmlspecialchars(strip_tags($this->controller->piVars['end_day']));
         }
     }
 }