Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_course\local\repository\content_item_readonly_repository_interface Interface Reference
Inheritance diagram for core_course\local\repository\content_item_readonly_repository_interface:
core_course\local\repository\caching_content_item_readonly_repository core_course\local\repository\content_item_readonly_repository

Public Member Functions

 find_all ()
 Find all content items that can be presented, irrespective of course.
 
 find_all_for_course (\stdClass $course, stdClass $user)
 Find all content items for a given course and user.
 

Member Function Documentation

◆ find_all()

core_course\local\repository\content_item_readonly_repository_interface::find_all ( )

Find all content items that can be presented, irrespective of course.

Return values
arraythe array of content items.

Implemented in core_course\local\repository\caching_content_item_readonly_repository, and core_course\local\repository\content_item_readonly_repository.

◆ find_all_for_course()

core_course\local\repository\content_item_readonly_repository_interface::find_all_for_course ( \stdClass $course,
stdClass $user )

Find all content items for a given course and user.

Parameters
stdClass$coursethe course object.
stdClass$userthe user object.
Return values
arraythe array of content items.

Implemented in core_course\local\repository\caching_content_item_readonly_repository, and core_course\local\repository\content_item_readonly_repository.


The documentation for this interface was generated from the following file: