Commit graph

97290 commits

Author SHA1 Message Date
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
Dani Palou
956232db1d MDL-67749 ws: Set private token when reset or manual create token 2020-02-19 12:03:48 +01:00
Shamim Rezaie
768c318ad6 MDL-67969 lib: Fix duplicate blockinstanceid for fake blocks 2020-02-19 21:20:01 +11: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
Brendan Heywood
648e20ab6d MDL-67950 core: check_password_policy only fires when passwordpolicy = 1 2020-02-19 09:46:21 +11: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
Shamim Rezaie
c2fa370b0e MDL-67865 output: Fix id of the dropdown trigger 2020-02-18 16:14:45 +11: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
Bas Brands
46ff4741a1 MDL-65106 theme_classic: set custom navigationitem icon 2020-02-17 09:01:11 +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
Andrew Nicols
91434142a4 MDL-67712 grunt: Ensure that more-specific matches are first 2020-02-16 11:03:51 +08:00
AMOS bot
5f581dc9bb Automatically generated installer lang files 2020-02-16 00:11:04 +00:00
Daniel Thies
a632739617 MDL-67817 core_date: Add test for timezone localization strings 2020-02-14 11:48:38 -06:00
Daniel Thies
bf270d13fa MDL-67817 core_lang: Update timezone strings deprecating old identifiers 2020-02-14 11:48:38 -06:00
Sara Arjona
2c0b08c5a7 weekly release 3.9dev 2020-02-14 12:12:02 +01:00
Sara Arjona
5b21f101ee NOBUG: Fixed SVG browser compatibility 2020-02-14 12:12:00 +01:00
Sara Arjona
f8a3ba1c86 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2020-02-14 12:11:59 +01:00
Jun Pataleta
ed683f5f24 Merge branch 'MDL-67965-master' of git://github.com/andrewnicols/moodle 2020-02-14 11:16:42 +01:00
Andrew Nicols
cdf6bf03c6 Merge branch 'MDL-67878' of https://github.com/timhunt/moodle 2020-02-14 11:16:39 +01:00
Andrew Nicols
166a314a0c Merge branch 'MDL-67264-review-squashed' of https://github.com/Chocolate-lightning/moodle 2020-02-14 11:16:31 +01:00
Eloy Lafuente (stronk7)
d4758fd646 Merge branch 'MDL-67876' of https://github.com/timhunt/moodle 2020-02-14 11:15:33 +01:00