mod_quiz/add_question_modal

Contain the logic for the add random question modal.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) getAddOnPageId() → {Number}

Source:

Returns the saved page id for the question to be added to.

Returns:
Type
Number

(inner) getContextId() → {Number}

Source:

Retrieve the saved Moodle context id.

Returns:
Type
Number

(inner) setAddOnPageId(id)

Source:

Set the id of the page that the question should be added to when the user clicks the add to quiz link.

Parameters:
Name Type Description
id Number

(inner) setContextId(id)

Source:

Save the Moodle context id that the question bank is being rendered in.

Parameters:
Name Type Description
id Number