Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
DateFormatter Class Reference
Collaboration diagram for DateFormatter:
Collaboration graph

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:


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