Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_question\question_reference_manager Class Reference

Static Public Member Functions

static questions_with_references (array $questionids)
 Return a list of those questions from the list passed in, which are referenced.
 

Member Function Documentation

◆ questions_with_references()

static core_question\question_reference_manager::questions_with_references ( array $questionids)
static

Return a list of those questions from the list passed in, which are referenced.

A question is referenced if either:

  • There is a question_reference pointing at exactly that version of that question; or
  • There is an 'always latest' reference, and the question id is the latest non-draft version of that question_bank_entry.
Parameters
array$questionidsa list of question ids to check.
Return values
arraya list of the question ids from the input array which are referenced.

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