Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
The class content_item_repository, for reading content_items. More...
Public Member Functions | |
find_all () | |
Find all the available content items, not restricted to course or user. | |
find_all_for_course (\stdClass $course, stdClass $user) | |
Get the list of potential content items for the given course. | |
The class content_item_repository, for reading content_items.
core_course\local\repository\content_item_readonly_repository::find_all | ( | ) |
Find all the available content items, not restricted to course or user.
array | the array of content items. |
Implements core_course\local\repository\content_item_readonly_repository_interface.
core_course\local\repository\content_item_readonly_repository::find_all_for_course | ( | \stdClass | $course, |
stdClass | $user ) |
Get the list of potential content items for the given course.
stdClass | $course | the course |
stdClass | $user | the user, to pass to plugins implementing callbacks. |
array | the array of content_item objects |
Implements core_course\local\repository\content_item_readonly_repository_interface.