Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_course\local\repository\content_item_readonly_repository Class Reference

The class content_item_repository, for reading content_items. More...

Inheritance diagram for core_course\local\repository\content_item_readonly_repository:
core_course\local\repository\content_item_readonly_repository_interface

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.
 

Detailed Description

The class content_item_repository, for reading content_items.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ find_all()

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

Find all the available content items, not restricted to course or user.

Return values
arraythe array of content items.

Implements core_course\local\repository\content_item_readonly_repository_interface.

◆ find_all_for_course()

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.

Parameters
stdClass$coursethe course
stdClass$userthe user, to pass to plugins implementing callbacks.
Return values
arraythe array of content_item objects

Implements core_course\local\repository\content_item_readonly_repository_interface.


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