예제 #1
0
 /**
  * Day action
  *
  * @param int $year
  * @param int $month
  * @param int $day
  *
  * @return void
  */
 public function dayAction($year = NULL, $month = NULL, $day = NULL)
 {
     $today = DateTimeUtility::normalizeDateTime($day, $month, $year);
     $today->modify('+12 hours');
     $previous = clone $today;
     $previous->modify('-1 day');
     $next = clone $today;
     $next->modify('+1 day');
     $this->view->assignMultiple(array('indices' => $this->indexRepository->findDay($year, $month, $day), 'today' => $today, 'previous' => $previous, 'next' => $next));
 }
 /**
  * Day action
  *
  * @param int $year
  * @param int $month
  * @param int $day
  *
  * @return void
  */
 public function dayAction($year = null, $month = null, $day = null)
 {
     $date = DateTimeUtility::normalizeDateTime($day, $month, $year);
     $date->modify('+12 hours');
     $previous = clone $date;
     $previous->modify('-1 day');
     $next = clone $date;
     $next->modify('+1 day');
     $this->slotExtendedAssignMultiple(['indices' => $this->indexRepository->findDay($date->format('Y'), $date->format('n'), $date->format('j')), 'today' => $date, 'previous' => $previous, 'next' => $next], __CLASS__, __FUNCTION__);
 }