Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 92 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

helper:: (3 methods):
  bulk_move_questions()
  get_displaydata()
  process_question_ids()


Class: helper  - X-Ref

Bulk move helper.

bulk_move_questions(string $movequestionselected, \stdClass $tocategory)   X-Ref
Bulk move questions to a category.

param: string $movequestionselected comma separated string of questions to be moved.
param: \stdClass $tocategory the category where the questions will be moved to.

get_displaydata(array $addcontexts, \moodle_url $moveurl, \moodle_url $returnurl)   X-Ref
Get the display data for the move form.

param: array $addcontexts the array of contexts to be considered in order to render the category select menu.
param: \moodle_url $moveurl the url where the move script will point to.
param: \moodle_url $returnurl return url in case the form is cancelled.
return: array the data to be rendered in the mustache where it contains the dropdown, move url and return url.

process_question_ids(array $rawquestions)   X-Ref
Process the question came from the form post.

param: array $rawquestions raw questions came as a part of post.
return: array question ids got from the post are processed and structured in an array.