Anthony Forth
bcc3a463f6
MDL-67945 enrol: missing $DB in edit_instance_form
2020-02-26 16:22:36 +01:00
Jun Pataleta
37b2ee3f64
weekly release 3.9dev
2020-02-21 11:02:08 +08:00
Jun Pataleta
dd8144ebff
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
2020-02-21 11:01:17 +08:00
Eloy Lafuente (stronk7)
a1a5f87093
Merge branch 'MDL-67727-master' of git://github.com/crazyserver/moodle
2020-02-20 16:12:23 +01:00
Jun Pataleta
5a4c63aa4f
Merge branch 'MDL-67585-master-4' of git://github.com/snake/moodle
2020-02-20 11:58:02 +08:00
Adrian Greeve
a7b2378d72
MDL-67585 core_course: Added legacyitem to exporter.
...
Legacy items have no id and so can not be favourited nor
recommended. We needed a way to easily determine whether to show
these features in the templates.
2020-02-20 11:42:24 +08:00
Adrian Greeve
54561c885e
MDL-67585 core_course: Removing functions introduced this release.
...
For the initial rewrite of the activity chooser we had some
temporary functions to make everything work. These have been replaced
with different functions and so these functions are now being removed.
2020-02-20 11:42:23 +08:00
Adrian Greeve
618d310663
MDL-67585 core_course: Update to provider to add favourites info.
...
This adds information to the privacy report about the user being
able to favourite activities in the activity chooser.
2020-02-20 11:42:23 +08:00
Adrian Greeve
5c78541f80
MDL-67585 core_course: Service factory for course content items.
2020-02-20 11:42:23 +08:00
Jake Dallimore
806e736a7c
MDL-67585 core_course: use new content item service to load the chooser
2020-02-20 11:42:23 +08:00
Jake Dallimore
85b4eec5b7
MDL-67585 core_course: new web service to return course content items
2020-02-20 11:42:23 +08:00
Jake Dallimore
a826857844
MDL-67585 core_course: added web services for content item favourites
...
Two new services:
add_content_item_to_user_favourites
remove_content_item_from_user_favourites
2020-02-20 11:42:23 +08:00
Jake Dallimore
f09e9b887e
MDL-67585 core_course: add favouriting to the content item service class
2020-02-20 11:42:22 +08:00
Jake Dallimore
57dfcf951d
MDL-67585 core_course: add hook get_all_content_items
...
Returns all content items which are provided by the plugin, irrespective
of whether or not a user can see an item in a particular course. This is
used to generate a global list of content items, allowing for admin
level features to be added.
2020-02-20 11:42:22 +08:00
Jake Dallimore
520add19d6
MDL-67585 core_course: deprecate the callback get_shortcuts()
...
This involves a few changes:
- The callback is still called by the repository but only if the
replacement callback get_course_content_items is not implemented.
- Debugging is called when the get_shortcuts callback is called.
- We leave lti's implementation of get_shortcuts alone, in order to
maintain the output of get_module_metadata during its deprecation life
span.
2020-02-20 11:42:21 +08:00
Jake Dallimore
39b9e293e7
MDL-67585 core_course: only accept content items from mods and submods
...
This matches the prior behaviour in core.
2020-02-20 09:28:57 +08:00
Jake Dallimore
8fc7d83f38
MDL-67585 core_course: add get_course_content_items hook
...
Plugins use this to report which content items relate to a user in
a course.
2020-02-20 09:28:57 +08:00
Jake Dallimore
38a9d717a9
MDL-67585 format_singleactivity: fix hassubtype to use the service data
...
TODO: really need to properly work out subtypes lower down in the repo.
2020-02-20 09:28:57 +08:00
Jake Dallimore
12f73788b4
MDL-67585 core_course: deprecate get_module_metadata() from course/lib
2020-02-20 09:28:57 +08:00
Jake Dallimore
2f040002ee
MDL-67585 core_course: Use the content_item_service to build the picker
...
Replace get_module_metadata calls with calls to the new
content_item_service class.
2020-02-20 09:28:57 +08:00
Jake Dallimore
dd494a41a4
MDL-67585 core_course: add content_item_service class
...
The service object encapsulates access control logic and allows
consumers to query content items in different contexts/scopes.
2020-02-20 09:28:57 +08:00
Jake Dallimore
8210186372
MDL-67585 core_course: add user param to course_allowed_module
...
We want to be able to call this for a user, not rely on a global.
2020-02-20 09:28:57 +08:00
Jake Dallimore
eec2d09f84
MDL-67585 core_course: add exporter for course content items
...
An exporter will allow let us add calculated fields like 'favourited'
to the data being transferred.
2020-02-20 09:28:57 +08:00
Jake Dallimore
7c7ae1bd6f
MDL-67585 core_course: add caching_content_item_repository class
...
A repository object which caches results for a user and course. This
allows this repository to be called many time in a single request - a
pattern we expect when objects of this type replace the existing
get_module_metadata() method.
2020-02-20 09:28:57 +08:00
Jake Dallimore
92715acd0c
MDL-67585 core: add course content item cache
...
To be indexed by userid_courseid.
2020-02-20 09:28:57 +08:00
Jake Dallimore
e843336ee6
MDL-67585 core_course: add content_item_readonly_repository class
...
Add a read-only repository, which returns the list of content items
which can be added to a course. This class does not handle access
control nor user-related data pertaining to to core content_items.
This will be handled in a future commit in any calling code using
the repositories.
2020-02-20 09:28:57 +08:00
Jake Dallimore
94420851a5
MDL-67585 core_course: add support for custom titles to content_item
...
Plugins have always been able to return either a string or a lang string
when implementing the hook, 'get_shortcuts'. Since content_items will
be the replacement for that stdClass implementation, we need a way
for plugins to continue to have this flexibility. This just provides
a small contract and some classes that plugins can use in future.
2020-02-20 09:28:57 +08:00
Jake Dallimore
dd8048e350
MDL-67585 core_course: add the content_item class
...
Objects of this class represent items able to be added to a course,
including modules and submodules.
2020-02-20 09:28:57 +08:00
Eloy Lafuente (stronk7)
a21ba663fd
Merge branch 'MDL-67899-master' of git://github.com/rezaies/moodle
2020-02-20 00:41:19 +01:00
Luke Tucker
785271c6d9
MDL-50455: tool_capability: Use static cache when loading context data
2020-02-20 00:27:33 +01:00
Eloy Lafuente (stronk7)
287c044f9c
Merge branch 'MDL-67942-master' of https://github.com/HuongNV13/moodle
2020-02-19 19:17:09 +01:00
Eloy Lafuente (stronk7)
2b97ab8adb
Merge branch 'MDL-67947' of https://github.com/timhunt/moodle
2020-02-19 17:48:14 +01:00
Tim Hunt
887daf932c
MDL-67947 questions: questions_in_use should ask all components
...
Previously it was only checking mods.
2020-02-19 11:55:04 +00:00
Huong Nguyen
fbad7a5170
MDL-67942 Quiz: Quiz attempt report delete_selected_attempts issue
2020-02-19 15:34:34 +07:00
Jun Pataleta
56a73a3f1e
Merge branch 'MDL-67321-latest' of https://github.com/Chocolate-lightning/moodle
2020-02-19 14:44:13 +08:00
Mathew May
c58c23d6c6
MDL-67321 core_course: Add support for tabbing activities in the chooser
2020-02-19 13:28:54 +08:00
Eloy Lafuente (stronk7)
751189a83a
Merge branch 'MDL-67471_master' of https://github.com/t-schroeder/moodle
2020-02-18 23:54:35 +01:00
Eloy Lafuente (stronk7)
39696f9e66
Merge branch 'MDL-61390-master' of git://github.com/junpataleta/moodle
2020-02-18 19:07:05 +01:00
Eloy Lafuente (stronk7)
aced9967cc
Merge branch 'MDL-67953-master' of git://github.com/andrewnicols/moodle
2020-02-18 17:09:17 +01:00
Eloy Lafuente (stronk7)
29e0c1c85f
Merge branch 'MDL-67949-master' of git://github.com/andrewnicols/moodle
2020-02-18 10:20:07 +01:00
Andrew Nicols
d1a7806094
MDL-67949 grunt: normalise component paths
2020-02-18 08:10:24 +08:00
Eloy Lafuente (stronk7)
03a897c038
Merge branch 'MDL-61389-master' of git://github.com/junpataleta/moodle
2020-02-17 23:29:28 +01:00
Eloy Lafuente (stronk7)
245ac91748
Merge branch 'MDL-67309' of https://github.com/Peterburnett/moodle
2020-02-17 22:40:45 +01:00
Eloy Lafuente (stronk7)
1a5a87c4f3
Merge branch 'MDL-67817-master' of https://github.com/dthies/moodle
2020-02-17 22:08:09 +01:00
Eloy Lafuente (stronk7)
82ca0e2afd
Merge branch 'MDL-67712-master' of git://github.com/andrewnicols/moodle
2020-02-17 12:28:05 +01:00
Tim Schroeder
be8cfe6bcc
MDL-67471 message: fixed mark_notification_read with messaging disabled
2020-02-17 09:15:19 +01:00
Jun Pataleta
dff9f9564b
MDL-61390 mod_forum: Create template for forum search results
2020-02-17 15:55:56 +08:00
Jun Pataleta
904bc48b16
MDL-61389 mod_forum: Descriptive aria-label for "Discuss this topic"
2020-02-17 15:51:23 +08:00
Peter Burnett
59298ccebc
MDL-67309 login: Added check for password policy at login time.
2020-02-17 09:55:07 +10:00
Andrew Nicols
843cf97bf6
MDL-67949 grunt: Add debugging information
2020-02-16 11:31:12 +08:00