/** * Constructor * @param $dialogText string The localized text to appear * in the dialog modal. * @param $event string the name of the JS event. * @param $extraArguments array (optional) extra information to be passed as JSON data with the event. * @param $title string (optional) The localized modal title. * @param $remoteUrl string (optional) A URL to be * redirected to when the confirmation button is clicked. * @param $titleIcon string (optional) The icon to be used * in the modal title bar. * @param $okButton string (optional) The localized text to * appear on the confirmation button. * @param $cancelButton string (optional) The localized text to * appear on the cancel button. * @param $canClose boolean (optional) Whether the modal will * have a close button. */ function JsEventConfirmationModal($dialogText, $event = 'confirmationModalConfirmed', $extraArguments = null, $title = null, $titleIcon = null, $okButton = null, $cancelButton = null, $canClose = true) { parent::ConfirmationModal($dialogText, $title, $titleIcon, $okButton, $cancelButton, $canClose); $this->_event = $event; $this->_extraArguments = $extraArguments; }
/** * Constructor * @param $dialogText string The localized text to appear * in the dialog modal. * @param $title string (optional) The localized modal title. * @param $remoteUrl string (optional) A URL to be * redirected to when the confirmation button is clicked. * @param $titleIcon string (optional) The icon to be used * in the modal title bar. * @param $okButton string (optional) The localized text to * appear on the confirmation button. * @param $cancelButton string (optional) The localized text to * appear on the cancel button. * @param $canClose boolean (optional) Whether the modal will * have a close button. */ function RedirectConfirmationModal($dialogText, $title = null, $remoteUrl = null, $titleIcon = null, $okButton = null, $cancelButton = null, $canClose = true) { parent::ConfirmationModal($dialogText, $title, $titleIcon, $okButton, $cancelButton, $canClose); $this->_remoteUrl = $remoteUrl; }
/** * Constructor * @param $session Session The user's session object. * @param $dialogText string The localized text to appear * in the dialog modal. * @param $title string (optional) The localized modal title. * @param $remoteAction string (optional) A URL to be * called when the confirmation button is clicked. * @param $titleIcon string (optional) The icon to be used * in the modal title bar. * @param $okButton string (optional) The localized text to * appear on the confirmation button. * @param $cancelButton string (optional) The localized text to * appear on the cancel button. * @param $canClose boolean (optional) Whether the modal will * have a close button. */ function RemoteActionConfirmationModal($session, $dialogText, $title = null, $remoteAction = null, $titleIcon = null, $okButton = null, $cancelButton = null, $canClose = true) { parent::ConfirmationModal($dialogText, $title, $titleIcon, $okButton, $cancelButton, $canClose); $this->_remoteAction = $remoteAction; $this->_csrfToken = $session->getCSRFToken(); }