core_calendar/repository

Description:
  • A javascript module to handle calendar ajax actions.

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

A javascript module to handle calendar ajax actions.

Members

(static, constant) deleteSubscription

Description:
  • Delete calendar subscription by id.

Source:

Delete calendar subscription by id.

(static, constant) getCourseGroupsData

Description:
  • Get the groups by course id.

Source:

Get the groups by course id.

(static, constant) updateEventStartDay

Description:
  • 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.

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}

Description:
  • Delete a calendar event.

Source:
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}

Description:
  • Fetch table view.

Source:
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}

Description:
  • Get calendar data for the day view.

Source:
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}

Description:
  • Get calendar data for the month view.

Source:
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}

Description:
  • Get calendar upcoming data.

Source:
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}

Description:
  • Get a calendar event by id.

Source:
Parameters:
Name Type Description
eventId number

The event id.

Returns:

Resolved with requested calendar event

Type
promise

(inner) submitCreateUpdateForm(formData) → {promise}

Description:
  • Submit the form data for the event form.

Source:
Parameters:
Name Type Description
formData string

The URL encoded values from the form

Returns:

Resolved with the new or edited event

Type
promise
Description:
  • A javascript module to handle calendar ajax actions.

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

A javascript module to handle calendar ajax actions.

Members

(static, constant) deleteSubscription

Description:
  • Delete calendar subscription by id.

Source:

Delete calendar subscription by id.

(static, constant) getCourseGroupsData

Description:
  • Get the groups by course id.

Source:

Get the groups by course id.

(static, constant) updateEventStartDay

Description:
  • 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.

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}

Description:
  • Delete a calendar event.

Source:
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}

Description:
  • Fetch table view.

Source:
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}

Description:
  • Get calendar data for the day view.

Source:
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}

Description:
  • Get calendar data for the month view.

Source:
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}

Description:
  • Get calendar upcoming data.

Source:
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}

Description:
  • Get a calendar event by id.

Source:
Parameters:
Name Type Description
eventId number

The event id.

Returns:

Resolved with requested calendar event

Type
promise

(inner) submitCreateUpdateForm(formData) → {promise}

Description:
  • Submit the form data for the event form.

Source:
Parameters:
Name Type Description
formData string

The URL encoded values from the form

Returns:

Resolved with the new or edited event

Type
promise