コード例 #1
0
 /**
  * @param $view
  */
 public function compose(View $view)
 {
     $viewData = $view->getData();
     $date = array_has($viewData, 'date') && $viewData['date'] ? $viewData['date'] : Carbon::today();
     $calendar = $this->manager->getCalendar(Carbon::today());
     $lastBillboard = $this->billboardsRepository->findNewer();
     $view->with('calendar', $calendar);
     $view->with('date', $date);
     $view->with('lastBillboard', $lastBillboard);
 }
コード例 #2
0
ファイル: Day.php プロジェクト: filmoteca/filmoteca
 /**
  * @return string
  */
 public function getDateInFormatToUrl()
 {
     $monthsMap = ExhibitionsManager::getMonthsMap();
     $date = $this->date->day . '-' . $monthsMap[$this->date->month - 1] . '-' . $this->date->year;
     return $date;
 }
コード例 #3
0
 public function searchFilms()
 {
     $exhibitions = $this->manager->findByTitleSinceToday(Input::get('titlte', ''));
     $filmsNames = $this->manager->getFilmsTitles($exhibitions->getCollection());
     return JsonResponse::create($filmsNames->toArray());
 }