Stud.IP  5.4
Helper Class Reference

Static Public Member Functions

static getCalendarSlotDuration (string $calendar_type='week', string $user_id='')
 
static getDefaultCalendarDate ()
 

Member Function Documentation

◆ getCalendarSlotDuration()

static getCalendarSlotDuration ( string  $calendar_type = 'week',
string  $user_id = '' 
)
static

Retrieves the time slot duration in the calendar for a specified calendar type and either the current user or a specific user.

Parameters
string$calendar_typeThe calendar type for which to retrieve the slot duration. Valid values: 'week', 'day', 'week_group' (week group calendar), 'week_day' (day group calendar). Defaults to 'week'.
string$user_idThe user for which to retrieve the slot duration. Defaults to an empty string which then in turn means the current users slot duration is retrieved.
Returns
string The slot duration as a time string in the form HH:MM:SS.

◆ getDefaultCalendarDate()

static getDefaultCalendarDate ( )
static

Retrieves the default calendar date by various methods.

Returns
The default date for the calendar. This defaults to the current date if no other date can be retrieved.

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