core_calendar/repository

A javascript module to handle calendar ajax actions.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) deleteSubscription

Source:

Delete calendar subscription by id.

(static, constant) getCourseGroupsData

Source:

Get the groups by course id.

(static, constant) updateEventStartDay

Source:

Change the start day for the given event id. The day timestamp only has to be any time during the target day because only the date information is extracted, the time of the day is ignored.

Methods

(inner) deleteEvent(eventId, deleteSeries) → {promise}

Source:

Delete a calendar event.

Parameters:
Name Type Description
eventId number

The event id.

deleteSeries boolean

Whether to delete all events in the series

Returns:

Resolved with requested calendar event

Type
promise

(inner) fetch(component, handler, uniqueid, options, resetPreferences) → {Promise}

Source:

Fetch table view.

Parameters:
Name Type Description
component String

The component

handler String

The name of the handler

uniqueid String

The unique id of the table

options Object

The options to use when updating the table

Properties
Name Type Description
sortData Array

The list of columns to sort by

joinType Number

The filterset join type

filters Object

The filters to apply when searching

firstinitial String

The first name initial to filter on

lastinitial String

The last name initial to filter on

pageNumber String

The page number

pageSize Number

The page size

hiddenColumns Object

The columns to hide

resetPreferences Bool
Returns:

Resolved with requested table view

Type
Promise

(inner) getCalendarDayData(year, month, day, courseId, categoryId) → {promise}

Source:

Get calendar data for the day view.

Parameters:
Name Type Description
year number

Year

month number

Month

day number

Day

courseId number

The course id.

categoryId number

The id of the category whose events are shown

Returns:

Resolved with the day view data.

Type
promise

(inner) getCalendarMonthData(year, month, courseId, categoryId, includeNavigation, mini, day, view) → {promise}

Source:

Get calendar data for the month view.

Parameters:
Name Type Description
year number

Year

month number

Month

courseId number

The course id.

categoryId number

The category id.

includeNavigation boolean

Whether to include navigation.

mini boolean

Whether the month is in mini view.

day number

Day (optional)

view string

The calendar view mode.

Returns:

Resolved with the month view data.

Type
promise

(inner) getCalendarUpcomingData(courseId, categoryId) → {promise}

Source:

Get calendar upcoming data.

Parameters:
Name Type Description
courseId number

The course id.

categoryId number

The category id.

Returns:

Resolved with the month view data.

Type
promise

(inner) getEventById(eventId) → {promise}

Source:

Get a calendar event by id.

Parameters:
Name Type Description
eventId number

The event id.

Returns:

Resolved with requested calendar event

Type
promise

(inner) submitCreateUpdateForm(formData) → {promise}

Source:

Submit the form data for the event form.

Parameters:
Name Type Description
formData string

The URL encoded values from the form

Returns:

Resolved with the new or edited event

Type
promise

A javascript module to handle calendar ajax actions.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) deleteSubscription

Source:

Delete calendar subscription by id.

(static, constant) getCourseGroupsData

Source:

Get the groups by course id.

(static, constant) updateEventStartDay

Source:

Change the start day for the given event id. The day timestamp only has to be any time during the target day because only the date information is extracted, the time of the day is ignored.

Methods

(inner) deleteEvent(eventId, deleteSeries) → {promise}

Source:

Delete a calendar event.

Parameters:
Name Type Description
eventId number

The event id.

deleteSeries boolean

Whether to delete all events in the series

Returns:

Resolved with requested calendar event

Type
promise

(inner) fetch(component, handler, uniqueid, options, resetPreferences) → {Promise}

Source:

Fetch table view.

Parameters:
Name Type Description
component String

The component

handler String

The name of the handler

uniqueid String

The unique id of the table

options Object

The options to use when updating the table

Properties
Name Type Description
sortData Array

The list of columns to sort by

joinType Number

The filterset join type

filters Object

The filters to apply when searching

firstinitial String

The first name initial to filter on

lastinitial String

The last name initial to filter on

pageNumber String

The page number

pageSize Number

The page size

hiddenColumns Object

The columns to hide

resetPreferences Bool
Returns:

Resolved with requested table view

Type
Promise

(inner) getCalendarDayData(year, month, day, courseId, categoryId) → {promise}

Source:

Get calendar data for the day view.

Parameters:
Name Type Description
year number

Year

month number

Month

day number

Day

courseId number

The course id.

categoryId number

The id of the category whose events are shown

Returns:

Resolved with the day view data.

Type
promise

(inner) getCalendarMonthData(year, month, courseId, categoryId, includeNavigation, mini, day, view) → {promise}

Source:

Get calendar data for the month view.

Parameters:
Name Type Description
year number

Year

month number

Month

courseId number

The course id.

categoryId number

The category id.

includeNavigation boolean

Whether to include navigation.

mini boolean

Whether the month is in mini view.

day number

Day (optional)

view string

The calendar view mode.

Returns:

Resolved with the month view data.

Type
promise

(inner) getCalendarUpcomingData(courseId, categoryId) → {promise}

Source:

Get calendar upcoming data.

Parameters:
Name Type Description
courseId number

The course id.

categoryId number

The category id.

Returns:

Resolved with the month view data.

Type
promise

(inner) getEventById(eventId) → {promise}

Source:

Get a calendar event by id.

Parameters:
Name Type Description
eventId number

The event id.

Returns:

Resolved with requested calendar event

Type
promise

(inner) submitCreateUpdateForm(formData) → {promise}

Source:

Submit the form data for the event form.

Parameters:
Name Type Description
formData string

The URL encoded values from the form

Returns:

Resolved with the new or edited event

Type
promise