Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
qbank_bulkmove\helper Class Reference

Static Public Member Functions

static bulk_move_questions (string $movequestionselected, stdClass $tocategory)
 Bulk move questions to a category.
 
static process_question_ids (array $rawquestions)
 Process the question came from the form post.
 

Public Attributes

 $displaydata = []
 
return $displaydata
 
replacement moodle_url $moveurl
 
replacement moodle_url moodle_url $returnurl: array { core\deprecation::emit_deprecation_if_present([self::class
 
replacement moodle_url moodle_url __FUNCTION__
 
replacement : 'replaced by a modal and webservice. See qbank_bulkmove/modal_question_bank_bulkmove and core_question_external\move_questions'
 Get the display data for the move form.
 
replacement mdl: '<a class="el" href="https: )] public static function get_displaydata(array $addcontexts
 
replacement since: '5.0'
 

Member Function Documentation

◆ bulk_move_questions()

static qbank_bulkmove\helper::bulk_move_questions ( string $movequestionselected,
stdClass $tocategory )
static

Bulk move questions to a category.

Parameters
string$movequestionselectedcomma separated string of questions to be moved.
stdClass$tocategorythe category where the questions will be moved to.

◆ process_question_ids()

static qbank_bulkmove\helper::process_question_ids ( array $rawquestions)
static

Process the question came from the form post.

Parameters
array$rawquestionsraw questions came as a part of post.
Return values
arrayquestion ids got from the post are processed and structured in an array.

Member Data Documentation

◆ __pad0__

replacement qbank_bulkmove\helper::__pad0__

Get the display data for the move form.

Parameters
array$addcontextsthe array of contexts to be considered in order to render the category select menu.
moodle_url$moveurlthe url where the move script will point to.
moodle_url$returnurlreturn url in case the form is cancelled.
Return values
arraythe data to be rendered in the mustache where it contains the dropdown, move url and return url.
Deprecated
since Moodle 5.0.
Todo
MDL-82413 Final deprecation in Moodle 6.0.

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