|
Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Confirm action. More...
Public Member Functions | |
| __construct ($message, $callback=null, $continuelabel=null, $cancellabel=null) | |
| Constructs the confirm action object. | |
| export_for_template (renderer_base $output) | |
| Export for template. | |
Public Attributes | |
| string | $event |
| $event The DOM event that will trigger this action when caught | |
| string | $jsfunction = false |
| A function name to call when the button is clicked The JS function you create must have two arguments: | |
| array | $jsfunctionargs = array() |
| An array of arguments to pass to the JS function. | |
Confirm action.
| confirm_action::__construct | ( | $message, | |
| $callback = null, | |||
| $continuelabel = null, | |||
| $cancellabel = null ) |
Constructs the confirm action object.
| string | $message | The message to display to the user when they are shown the confirm dialogue. |
| string | $callback | Deprecated since 2.7 |
| string | $continuelabel | The string to use for he continue button |
| string | $cancellabel | The string to use for the cancel button |
|
inherited |
Export for template.
| renderer_base | $output | The renderer. |
| stdClass |
Implements templatable.
|
inherited |
A function name to call when the button is clicked The JS function you create must have two arguments: