Exemple #1
0
 /**
  * Formats a series of SingleDate objects into a nice format. The dates parameter is an array of dates.
  * The array has to have the key 'termin' with an array of SingleDate objects as value.
  * @static
  * @param  $dates an array with an array of SingleDate objects
  * @param string $return_mode expected values are 'int', 'string' and 'export'. The default value is 'string'.
  * @return string
  */
 public static function formatDateWithAllRooms($dates, $return_mode = 'string')
 {
     $dateFormatter = new DateFormatter($dates, $return_mode);
     return $dateFormatter->internalFormatDateWithAllRooms();
 }