83513 Commits

Author SHA1 Message Date
Mark Nelson
294dce6764 MDL-57730 mod_assign: added action events
Part of MDL-55611 epic.
2017-04-03 11:36:33 +08:00
Mark Nelson
bb19f80414 MDL-57730 core_calendar: handle '0' as a courseid
User overrides set the course id as 0 in the events table
(Moodle can be stupid). We need to deal with this.

Part of MDL-55611 epic.
2017-04-03 11:36:33 +08:00
Mark Nelson
5e6e3babf4 MDL-57730 core_calendar: fixed incompatibility with PHP 5.x
Also removed unused function and fixed PHPDocs.

Part of MDL-55611 epic.
2017-04-03 11:36:33 +08:00
Cameron Ball
aa457b7dee MDL-57730 core_calendar: Action interface aware of actionability
We need a way to decide whether an action can currently be completed
(e.g., an assignment where submissions are not yet open can not
be actioned, even though it may be displayed on the upcomming events
list).

To do this, the action interface now contains an is_actionable method.

Part of MDL-55611 epic.
2017-04-03 11:36:33 +08:00
Cameron Ball
42ec9f0d63 MDL-57730 core_calendar: Map action events to legacy events
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Cameron Ball
2a5cce61ba MDL-57730 core_calendar: Allow modules to control event visibility
By implementing the mod_{modname}_core_calendar_is_event_visible callback
a module can decide whether or not a user should see an event.

Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
5df117d438 MDL-57447 block_myoverview: build paging bar data structure
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
ce37c375f6 MDL-57447 block_myoverview: add missing docs on amd modules
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
58929f0e78 MDL-57447 block_myoverview: paging bar module needs page number
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
afe1a3c3b6 MDL-57447 block_myoverview: bug fixes and code clean up
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
6391b320e6 MDL-57447 block_myoverview: make paging bar buttons work
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
9ac2e865a4 MDL-57447 block_myoverview: add context for courses view
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
0b320903b6 MDL-57447 block_myoverview: created courses-view-by-status template
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
e8f4d95408 MDL-57447 block_myoverview: create paging bar and content modules
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
208ee9b09c MDL-57447 block_myoverview: courses view amd modules
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
0fc7dbce37 MDL-57447 block_myoverview: add templates for courses view
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Simey Lameze
6922c9a183 MDL-57447 block_myoverview: escape html content on course summary
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
bf313ce202 MDL-57502 core: version bump for action event webservice
Part of MDL-55611 epic.
2017-04-03 11:36:32 +08:00
Ryan Wyllie
6fbecb9219 MDL-57502 block_myoverview: use get calendar action events web service
Part of MDL-55611 epic.
2017-04-03 11:36:08 +08:00
Ryan Wyllie
4139f1311f MDL-57502 core_calendar: get calendar action events tests
Part of MDL-55611 epic.
2017-04-03 11:36:08 +08:00
Mark Nelson
c0f877fa62 MDL-57502 core_calendar: add get calendar action events web service
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
984355ce57 MDL-57502 core_calendar: add calendar event exporters
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
392d6a49f8 MDL-57502 calendar: add local api class for internal use
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
1575194a5c MDL-57750 calendar: tests for api get_action_events_by_timesort
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
ca21b08de8 MDL-57750 calendar: add api function to get action events by timesort
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
18a96325a7 MDL-57750 calendar: calendar event vault tests
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Ryan Wyllie
84d865d69b MDL-57750 calendar: add event vault
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Mark Nelson
5b3c691fd5 MDL-57443 core_completion: added API to retrieve completion progress
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
5ca71c2dc3 MDL-57442 core_calendar: Allow course modules to create actions for events
Course modules can now implement the function mod_{module}_core_calendar_provide_event_action
which allows them to return an action to attach to an event.

Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
bee158fa4b MDL-57442 block_myoverview: Complete renderer params list
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
0efe462b12 MDL-57442 core_calendar: Fix incorrect copyright notice
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
c5478a5b6c MDL-57442 core_calendar: Update proxies to accept a 'base' class
The base class can contain information we would prefer not to
have to hit the database for.

Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
33be1706e1 MDL-57442 core_calendar: Add missing return to event factory interface docs
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Cameron Ball
4c19dc323a MDL-57442 core_calendar: Add missing method to times interface
Also adds a missing member to event_times implementation.

Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Mark Nelson
3e1c027532 MDL-57938 mod_assign: added new 'gradingduedate' setting
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Damyon Wiese
410f2fb30d MDL-57446 myoverview: version bump for new classes.
Part of MDL-55611 epic.
2017-04-03 11:36:07 +08:00
Simey Lameze
dd61723edb MDL-57446 core_course: add required fields to exporter
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
084cabeb9f MDL-57446 block_myoverview: add course summary renderable
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
be99bd617c MDL-57446 block_myoverview: add timeline sort by courses templates
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
bcd6ae736b MDL-57446 block_myoverview: add event list by course module
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
cfc57eec1b MDL-57446 block_myoverview: make event list module filter by course
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
4f580aa7a9 MDL-57446 block_myoverview: add methods to query data by course
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Mark Nelson
12cbce0aa3 MDL-57888 core_calendar: moved functions from calendar/lib.php
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Cameron Ball
e46efe3a72 MDL-57599 core_calendar: Add action event class
This patch adds a "regular" calendar event class, and a simple extension
of it which we are calling an action event.

Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
f7ce6eab7e MDL-57545 core_calendar: add missing record snapshots
This commit adds missing add_record_snapshot() calls everywhere calendar_event_updated is triggered.

Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Simey Lameze
a22fa7cb68 MDL-57545 core_calendar: remove visibility fields from calendar events
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Mark Nelson
c45266d115 MDL-57545 core_calendar: trigger update event when toggling visibility
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Cameron Ball
10a8ea172b MDL-57445 block_myoverview: refactor event_list render
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Ryan Wyllie
ed9c238cae MDL-57445 block_myoverview: remove timeline_view_dates.js
Removed the JS for the timeline_view_dates template as it is no longer
required.

Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Ryan Wyllie
1d0cbd7746 MDL-57445 block_myoverview: timeline view sort-by-date event list
The list of calendar events on the sort-by-date view of the timeline is
now treated as a single long list of calendar events where the groupings
(today, next 7 days etc) are purely for display purposes.

Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00