core_user/status_field

AMD module for the user enrolment status field in the course participants page.

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

Members

(static, constant) init

Source:

Initialise the statu field handler.

Methods

(inner) getBody(contextId, ueid, formdata) → {Promise}

Source:

Get the body fragment.

Parameters:
Name Type Default Description
contextId Number
ueid Number

The user enrolment id

formdata Object null
Returns:
Type
Promise
Source:

Get the dynamic table from the specified link.

Parameters:
Name Type Description
link HTMLElement
Returns:
Type
HTMLElement

(inner) getStatusContainer(link) → {HTMLElement}

Source:

Get the status container from the specified link.

Parameters:
Name Type Description
link HTMLElement
Returns:
Type
HTMLElement
Source:

Get user enrolment id from the specified link

Parameters:
Name Type Description
link HTMLElement
Returns:
Type
Number

(inner) registerEventListeners(contextId, uniqueId)

Source:

Register all event listeners for the status fields.

Parameters:
Name Type Description
contextId Number
uniqueId Number

(inner) showEditDialogue(link, getBody)

Source:

Show the edit dialogue.

Parameters:
Name Type Description
link HTMLElement
getBody function

Function to get the body for the specified user enrolment

(inner) showStatusDetails(link)

Source:

Show the user details dialogue.

Parameters:
Name Type Description
link HTMLElement

(inner) showUnenrolConfirmation(link)

Source:

Show and handle the unenrolment confirmation dialogue.

Parameters:
Name Type Description
link HTMLElement

(inner) submitEditFormAjax(clickedLink, getBody, modal, userEnrolmentId, userData)

Source:

Submit the edit dialogue.

Parameters:
Name Type Description
clickedLink HTMLElement
getBody function
modal Object
userEnrolmentId Number
userData Object

(inner) submitUnenrolFormAjax(clickedLink, modal, args, userData)

Source:

Submit the unenrolment form.

Parameters:
Name Type Description
clickedLink HTMLElement
modal Object
args Object
userData Object