Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core_calendar\type_factory Class Reference

Static Public Member Functions

static get_calendar_instance ($type=null)
 Returns an instance of the currently used calendar type. More...
 
static get_calendar_type ()
 Returns the current calendar type in use. More...
 
static get_list_of_calendar_types ()
 Returns a list of calendar typess available for use. More...
 

Member Function Documentation

◆ get_calendar_instance()

static core_calendar\type_factory::get_calendar_instance (   $type = null)
static

Returns an instance of the currently used calendar type.

Parameters
string | null$typethe calendar type to use, if none provided use logic to determine
Return values
core_calendar

◆ get_calendar_type()

static core_calendar\type_factory::get_calendar_type ( )
static

Returns the current calendar type in use.

Return values
stringthe current calendar type being used

◆ get_list_of_calendar_types()

static core_calendar\type_factory::get_list_of_calendar_types ( )
static

Returns a list of calendar typess available for use.

Return values
arraythe list of calendar types

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