|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($session, $dialogText, $title=null, $remoteAction=null, $titleIcon=null, $okButton=null, $cancelButton=null, $canClose=true) | |
| getCSRFToken () | |
| getLocalizedOptions () | |
| getRemoteAction () | |
Public Member Functions inherited from ConfirmationModal | |
| __construct ($dialogText, $title=null, $titleIcon='modal_confirm', $okButton=null, $cancelButton=null, $canClose=true) | |
| getCancelButton () | |
| getDialogText () | |
| getOkButton () | |
Public Member Functions inherited from Modal | |
| __construct ($title=null, $titleIcon=null, $canClose=true, $closeOnFormSuccessId=null, $closeCleanVueInstances=[]) | |
| getCanClose () | |
| getCloseButtonText () | |
| getJSLinkActionRequest () | |
| getTitle () | |
| getTitleIcon () | |
Public Member Functions inherited from LinkActionRequest | |
| __construct () | |
Data Fields | |
| $_csrfToken | |
| $_remoteAction | |
Data Fields inherited from ConfirmationModal | |
| $_cancelButton | |
| $_dialogText | |
| $_okButton | |
Data Fields inherited from Modal | |
| $_canClose | |
| $_closeCleanVueInstances | |
| $_closeOnFormSuccessId | |
| $_title | |
| $_titleIcon | |
Class defining a simple confirmation modal with a remote action and ok/cancel buttons.
Definition at line 18 of file RemoteActionConfirmationModal.inc.php.
| RemoteActionConfirmationModal::__construct | ( | $session, | |
| $dialogText, | |||
$title = null, |
|||
$remoteAction = null, |
|||
$titleIcon = null, |
|||
$okButton = null, |
|||
$cancelButton = null, |
|||
$canClose = true |
|||
| ) |
Constructor
| $session | Session The user's session object. |
| $dialogText | string The localized text to appear in the dialog modal. |
| $title | string (optional) The localized modal title. |
| $remoteAction | string (optional) A URL to be called when the confirmation button is clicked. |
| $titleIcon | string (optional) The icon to be used in the modal title bar. |
| $okButton | string (optional) The localized text to appear on the confirmation button. |
| $cancelButton | string (optional) The localized text to appear on the cancel button. |
| $canClose | boolean (optional) Whether the modal will have a close button. |
Definition at line 48 of file RemoteActionConfirmationModal.inc.php.
| RemoteActionConfirmationModal::getCSRFToken | ( | ) |
Get the CSRF token.
Definition at line 71 of file RemoteActionConfirmationModal.inc.php.
References $_csrfToken.
Referenced by getLocalizedOptions().
| RemoteActionConfirmationModal::getLocalizedOptions | ( | ) |
Reimplemented from ConfirmationModal.
Definition at line 82 of file RemoteActionConfirmationModal.inc.php.
References getCSRFToken(), and getRemoteAction().
| RemoteActionConfirmationModal::getRemoteAction | ( | ) |
Get the remote action.
Definition at line 63 of file RemoteActionConfirmationModal.inc.php.
References $_remoteAction.
Referenced by getLocalizedOptions().
| string RemoteActionConfirmationModal::$_csrfToken |
A CSRF token.
Definition at line 29 of file RemoteActionConfirmationModal.inc.php.
Referenced by getCSRFToken().
| string RemoteActionConfirmationModal::$_remoteAction |
A URL to be called when the confirmation button is clicked.
Definition at line 23 of file RemoteActionConfirmationModal.inc.php.
Referenced by getRemoteAction().