core_message/notification_processor_settings

Load the settings for a message processor.

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

Methods

(inner) disableButtons()

Source:

Disable the buttons in the footer.

(inner) enableButtons()

Source:

Enable the buttons in the footer.

(inner) getContextId() → {Number|null}

Source:

Retrieve the current context id, if any.

Returns:

The notification context id

Type
Number | null

(inner) getElement() → {object|null}

Source:

Retrieve the current element, if any.

Returns:

The notification node element.

Type
object | null

(inner) getForm() → {object}

Source:

Get the form element from the modal.

Returns:
Type
object

(inner) getName() → {string|null}

Source:

Retrieve the current name, if any.

Returns:

The notification name.

Type
string | null

(inner) getUserId() → {int|null}

Source:

Retrieve the current userid, if any.

Returns:

The notification userid

Type
int | null

(inner) hide()

Source:

Clear the notification from the modal when it's closed so that it is loaded fresh next time it's displayed.

(inner) loadAllContent() → {object}

Source:

Load both the title and body content.

Returns:

promise

Type
object

(inner) loadBodyContent() → {object}

Source:

Load the body for the modal to the appropriate value depending on message outputs.

Returns:

A promise resolved with the fragment html and js from

Type
object

(inner) loadTitleContent() → {object}

Source:

Load the title for the modal to the appropriate value depending on message outputs.

Returns:

A promise resolved with the new title text.

Type
object

(inner) registerEventListeners()

Source:

Set up all of the event handling for the modal.

(inner) setContextId(id)

Source:

Set the context id to the given value.

Parameters:
Name Type Description
id Number

The notification context id

(inner) setElement(element)

Source:

Set the object to the given value.

Parameters:
Name Type Description
element object

The notification node element.

(inner) setName(name)

Source:

Set the name to the given value.

Parameters:
Name Type Description
name string

The notification name.

(inner) setUserId(id)

Source:

Set the userid to the given value.

Parameters:
Name Type Description
id int

The notification userid

(inner) show()

Source:

Load the modal content before showing it. This is to allow us to re-use the same modal for creating and editing different message outputs within the page.

(inner) updateConfiguredStatus() → {Promise|boolean}

Source:

Checks if the processor has been configured. If so then remove the unconfigured status from the interface.

Returns:
Type
Promise | boolean