Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
qbank_deletequestion\helper Class Reference

Class helper of qbank_deletequestion. More...

Static Public Member Functions

static delete_questions (array $questionids, bool $deleteallversions)
 Delete questions has (single/multiple) version.
 
static get_delete_confirmation_message (array $questionids, bool $deleteallversions)
 Get the confirmation message of delete question.
 

Detailed Description

Class helper of qbank_deletequestion.

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

Member Function Documentation

◆ delete_questions()

static qbank_deletequestion\helper::delete_questions ( array $questionids,
bool $deleteallversions )
static

Delete questions has (single/multiple) version.

Parameters
array$questionidsList of questionid.
bool$deleteallversionsDelete all question version or not.

◆ get_delete_confirmation_message()

static qbank_deletequestion\helper::get_delete_confirmation_message ( array $questionids,
bool $deleteallversions )
static

Get the confirmation message of delete question.

Parameters
array$questionidsList of id questions.
bool$deleteallversionsDelete all question version or not.
Return values
arrayList confirmation message.

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