MDL-67585 core_course: add content_item_readonly_repository class
authorJake Dallimore <jake@moodle.com>
Mon, 20 Jan 2020 06:11:33 +0000 (14:11 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 20 Feb 2020 01:28:57 +0000 (09:28 +0800)
commite843336ee6f434b2f1d6b610fa6c26f59e520de4
tree9cd9b72261c7c93badeb92a463d2faf56eda0fb3
parent94420851a5e07a607c65572c488ed8fb65f57f7a
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.
course/classes/local/repository/content_item_readonly_repository.php [new file with mode: 0644]
course/classes/local/repository/content_item_readonly_repository_interface.php [new file with mode: 0644]
course/tests/content_item_readonly_repository_test.php [new file with mode: 0644]