Stud.IP  5.4
DateFormatter Class Reference

Static Public Member Functions

static formatDateAndRoom ($date, $return_mode='string')
 
static formatDateWithAllRooms ($dates, $return_mode='string')
 

Detailed Description

Formates one SingleDate object or a series of SingleDate objects into a nice format.

Member Function Documentation

◆ formatDateAndRoom()

static formatDateAndRoom (   $date,
  $return_mode = 'string' 
)
static

Formats one single date into a nice format.

Parameters
$dateSingleDate object
string$return_modeexpected values are 'int', 'string' and 'export'. The default value is 'string'.
Returns
string

◆ formatDateWithAllRooms()

static formatDateWithAllRooms (   $dates,
  $return_mode = 'string' 
)
static

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.

Parameters
$datesan array with an array of SingleDate objects
string$return_modeexpected values are 'int', 'string' and 'export'. The default value is 'string'.
Returns
string

The documentation for this class was generated from the following file: