mod_quiz/modal_quiz_question_bank

Contain the logic for the question bank modal.

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

Methods

(inner) handleAddToQuizEvent(e, anchorElement)

Source:

Update the URL of the anchor element that the user clicked on to make sure that the question is added to the correct page.

Parameters:
Name Type Description
e event

A JavaScript event

anchorElement object

The anchor element that was triggered

(inner) registerEventListeners()

Source:

Set up all of the event handling for the modal.

(inner) reloadBodyContent(querystring)

Source:

Replaces the current body contents with a new version of the question bank.

The contents of the question bank are generated using the provided query string.

Parameters:
Name Type Description
querystring string

URL encoded string.

(inner) show() → {void}

Source:

Override the parent show function.

Reload the body contents when the modal is shown. The current window URL is used to inform the new content that should be displayed.

Returns:
Type
void