cescobedo
0504254f1d
MDL-59524 general: Remove strings deprecated in 3.4
2019-08-12 00:13:08 +02:00
Simey Lameze
26d6404315
MDL-65958 calendar: students should not see course event type
2019-07-03 20:28:09 +08:00
Simey Lameze
419b868ae7
MDL-65707 calendar: set the correct event type on site calendar
2019-06-25 09:50:22 +08:00
Simey Lameze
dbccdae8f5
MDL-65671 calendar: add the calendar view selector
2019-06-10 13:09:57 +08:00
Simey Lameze
2b815157c9
MDL-59650 core_calendar: remove limit from calendar UI
2019-05-21 15:22:13 +08:00
Simey Lameze
e099259a46
MDL-59650 core_calendar: remove limit from event exporter
2019-05-21 15:22:09 +08:00
Simey Lameze
a8dcc212be
MDL-65262 core_calendar: change location param type
2019-05-02 11:29:42 +08:00
Jun Pataleta
92451f3a8a
Merge branch 'MDL-65206-master' of git://github.com/tobiasreischmann/moodle
2019-04-29 12:44:33 +08:00
Tobias Reischmann
90e331bcdc
MDL-65206 calendar: Enable update of location in repeated events.
...
The location is now updated in repeated events if it is altered in one
event and the option 'Also apply changes to the other X events in this
repeat series' is selected. If the location is not altered but some
other details, then manual changes of the location in other events
will not be overriden.
2019-03-29 14:13:43 +01:00
Marina Glancy
beff3806d6
MDL-10965 courses: capability to browse course list
2019-04-10 12:35:28 +02:00
David Monllaó
982fef46f4
MDL-64783 analytics: Activities due insight forwards to calendar
...
The patch includes changes applied after the peer review.
2019-04-09 00:29:57 +02:00
Shamim Rezaie
c51a157755
MDL-64830 core_calendar: Do cap check on event edit form
2019-03-05 04:24:53 +01:00
Simey Lameze
b13fe83adb
MDL-64214 core_calendar: fix event types form element handling
2018-11-29 13:59:32 +08:00
Luca Bösch
7294f412fc
MDL-63241 calendar: Add missing table alias in SQL query.
2018-10-07 21:43:47 +02:00
Neill Magill
656837d65f
MDL-62944 calendar: Clarify the intended use of $checkcapability
2018-08-31 10:15:37 +01:00
Marina Glancy
442f12f81a
MDL-62742 core: rename coursecat->core_course_category
...
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Shamim Rezaie
95ae74a7bc
MDL-58768 calendar: Add $requestinguser to the container class
...
The requesting user is not always the same as the current user. The container class now allows a different user
to be set as the requesting user. All capability checks are done against the requesting user.
Also, the $requestinguser is passed to core_calendar_provide_event_action and core_calendar_is_event_visible
callback functions. These callback functions need to be updated in all activity modules to accept a $user parameter.
2018-07-28 07:51:32 +10:00
Shamim Rezaie
d8c6c21c95
MDL-58768 Calendar: Added user param to calendar_set_filters
...
Decoupled calendar_set_filters from $USER.
Also removed the backward compatibility bit from the function because it was a left over.
2018-07-28 07:41:50 +10:00
Shamim Rezaie
bd8705732d
MDL-58768 Calendar: Added userid param to calendar_get_default_courses
2018-07-28 07:41:50 +10:00
Simey Lameze
f8a95c3df6
MDL-60826 calendar: fix group event type logic
2018-07-25 12:43:37 +08:00
Simey Lameze
687112af22
MDL-60826 calendar: further performance improvements
...
This commit does few tweaks and other performance improvements to
calendar_get_allowed_event_types to be more efficient. Also some minor
queries optimizations on the event form to fetch the list of courses
without groups.
2018-07-25 08:54:59 +08:00
Simey Lameze
0f1e7ec906
MDL-60826 calendar: restrict course fields to be retrieved
2018-07-24 07:58:34 +08:00
Simey Lameze
375b15a346
MDL-60826 calendar: deprecate calendar_get_all_allowed_types
2018-07-24 07:58:34 +08:00
Simey Lameze
dfc609e55d
MDL-60826 calendar: lazy load groups on event form
2018-07-24 07:58:34 +08:00
Simey Lameze
4be55b06da
MDL-60826 calendar: introduce calendar_get_allowed_event_types function
2018-07-24 07:58:34 +08:00
Michael Hawkins
ef4e04ee26
MDL-37624 calendar: Added location support
2018-06-29 10:46:54 +08:00
Luca Bösch
0188d5b5b4
MDL-61956 calendar: allow to see hidden course with switch role
2018-05-02 09:37:32 +02:00
Martin Gauk
c4172077df
MDL-61519 calendar: do not iterate through all categories
...
Replace calls to \coursecat::get_all() or cache the results.
2018-03-16 14:30:55 +00:00
Jun Pataleta
3894262a2f
MDL-61152 calendar: Remove usage of undefined variable
2018-01-23 10:49:18 +08:00
David Monllao
abf089f2a3
Merge branch 'MDL-60967-master' of git://github.com/ryanwyllie/moodle
2018-01-16 12:36:27 +01:00
David Monllao
51673a3469
Merge branch 'wip-MDL-60742-master' of git://github.com/marinaglancy/moodle
2018-01-09 09:52:44 +01:00
Ryan Wyllie
60908b2187
MDL-60967 calendar: only load course filter when required
2018-01-09 05:57:38 +00:00
Marina Glancy
099bca6de6
MDL-60742 calendar: allow customisation of 12/24h time format strings
2018-01-04 15:16:08 +08:00
Jun Pataleta
60236650d6
Merge branch 'MDL-60962-master' of git://github.com/ryanwyllie/moodle
2018-01-03 16:53:49 +08:00
Ryan Wyllie
08a7915551
MDL-60964 calendar: lazy load context for calendar_event
...
Stop loading the context in the constructor if it hasn't been provided.
There is no need to load it by default. We should lazily load it when it
is required.
2017-12-13 03:20:00 +00:00
Ryan Wyllie
7884ecf24f
MDL-60962 block_calendar_month: load content after page render
2017-12-06 06:21:16 +00:00
David Monllao
087b3303a5
Merge branch 'MDL-60842-master' of git://github.com/lameze/moodle
2017-11-20 10:27:58 +01:00
Simey Lameze
2dc93a3769
MDL-60842 calendar: do not load all course fields
2017-11-20 16:49:45 +08:00
Simey Lameze
5e8e87aaee
MDL-60806 core_calendar: return hidden categories
2017-11-20 12:06:47 +08:00
Simey Lameze
10c17dcc10
MDL-60628 calendar: support category events on get_calendar_events ws
2017-11-09 11:29:07 +08:00
Andrew Nicols
f3743b3041
Merge branch 'MDL-60626-master' of git://github.com/damyon/moodle
2017-11-06 12:43:24 +08:00
Damyon Wiese
30890c2971
MDL-60626 calendar: Fix for overrides
...
Override events do not have the courseid so we need to get it from the module instance.
2017-11-06 12:21:27 +08:00
Damyon Wiese
af25b8fc7f
MDL-60626 calendar: Check capabilities for api
...
All external functions must check all capabilities before returning data.
The calendar API itself does not check capabilities (I wish it did), so we must be
careful exposing these functions to webservices.
2017-11-06 11:11:28 +08:00
Jake Dallimore
eb354bdefa
Merge branch 'MDL-60361-master' of git://github.com/andrewnicols/moodle
2017-11-06 09:29:46 +08:00
Andrew Nicols
b9fd516407
MDL-60361 calendar: Support all event types for calendar subs
2017-11-03 11:27:40 +08:00
Andrew Nicols
57e8c9f748
MDL-60587 calendar: Correct category subscription in information
2017-11-02 21:49:28 +08:00
Andrew Nicols
7b7bf31d4c
MDL-60587 calendar: Add helper to setup the calendar_information
2017-11-02 21:49:28 +08:00
Andrew Nicols
e3491a093a
MDL-60558 calendar: Upcoming block should use the right template
2017-11-02 11:55:49 +08:00
Damyon Wiese
ed6d81c9f7
MDL-59973 calendar: Remove duplication
...
The function calendar_get_default_courses is responsible for loading all variants of calendar
course lists.
1 the list of courses that the current user will see events for in the site calendar.
2 the list of courses the current user will see when they are looking at a specific course calendar.
3 the list of course calendars the current user can create / edit events in.
2017-10-26 14:39:35 +08:00
Damyon Wiese
01ed53df0f
MDL-59973 calendar: Only load required fields
...
When loading courses for the course filter on the calendar, we only need the id and shortname.
2017-10-26 14:21:29 +08:00