Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
enrol_lti\local\ltiadvantage\repository\published_resource_repository Class Reference

Public Member Functions

 find_all_by_ids_for_user (array $ids, int $userid)
 Find all published_resource instances matching the supplied ids for the current user.
 
 find_all_for_user (int $userid)
 Find all published resources which are visible to the given user.
 

Member Function Documentation

◆ find_all_by_ids_for_user()

enrol_lti\local\ltiadvantage\repository\published_resource_repository::find_all_by_ids_for_user ( array $ids,
int $userid )

Find all published_resource instances matching the supplied ids for the current user.

Parameters
array$idsthe array containing object ids to lookup
int$useridthe id of the user to check
Return values
arrayan array of published_resource instances which are available to the user.

◆ find_all_for_user()

enrol_lti\local\ltiadvantage\repository\published_resource_repository::find_all_for_user ( int $userid)

Find all published resources which are visible to the given user.

Parameters
int$useridthe id of the user to check.
Return values
published_resource[]an array of published_resource view objects instances.

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