◆ 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_type | The 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_id | The 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: