/**
  * Creates a summary of events date range. The summary of entire event listing
  * is like: 'There are seven events scheduled for January 2016 and that 1 did
  * not happen'.
  *
  * @param StdClass $eventListing Event listing
  * @param StdClass $dateRange Event listing
  * @return string The summary of a event date range
  */
 public static function setEventsDateRangeSummary($eventListing, $dateRange)
 {
     return self::formatTotalEventScheduled($eventListing) . ' para ' . DateUtils::getMonthName($dateRange->monthVal) . ' de ' . $dateRange->yearVal . self::formatEventScheduledNotOccurred($eventListing) . '.';
 }
 /**
  * Format links for calendar navigation.
  *
  * @param int $calendarId The id of the current calendar in use
  * @param array $eventDateRange An array of prepared event date range objects
  * @return array Formatted link objects to calendar navigation, each element
  *               contains a link to navigate through calendar (->lnk), the text
  *               of the link (->lnkText) and a title for the link (->lnkTitle)
  */
 private function formatCalendarNavigationLinks($calendarId, $eventDateRange)
 {
     $calendarNavigationLinks = array();
     // Formatting links
     foreach ($eventDateRange as $edr) {
         $monthName = DateUtils::getMonthName($edr->month);
         $calendarNavigationLinks[] = (object) array('lnk' => $this->makeUrl('Calendar.Main', array('month' => $edr->month, 'year' => $edr->year, 'calendarId' => $calendarId)), 'lnkText' => $edr->order . ' - ' . $monthName . ' de ' . $edr->year, 'lnkTitle' => EventUtils::EVENTS_CALENDAR_NAME . ' de ' . $monthName . ' de ' . $edr->year);
     }
     return $calendarNavigationLinks;
 }