Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
RedirectConfirmationModal Class Reference
Inheritance diagram for RedirectConfirmationModal:
ConfirmationModal Modal LinkActionRequest

Public Member Functions

 getLocalizedOptions ()
 
 getRemoteUrl ()
 
 RedirectConfirmationModal ($dialogText, $title=null, $remoteUrl=null, $titleIcon=null, $okButton=null, $cancelButton=null, $canClose=true)
 
- Public Member Functions inherited from ConfirmationModal
 ConfirmationModal ($dialogText, $title=null, $titleIcon= 'modal_confirm', $okButton=null, $cancelButton=null, $canClose=true, $width=MODAL_WIDTH_AUTO)
 
 getCancelButton ()
 
 getDialogText ()
 
 getLocalizedOptions ()
 
 getOkButton ()
 
- Public Member Functions inherited from Modal
 getCanClose ()
 
 getJSLinkActionRequest ()
 
 getLocalizedOptions ()
 
 getTitle ()
 
 getTitleIcon ()
 
 getWidth ()
 
 Modal ($title=null, $titleIcon=null, $canClose=true, $width=MODAL_WIDTH_DEFAULT)
 
- Public Member Functions inherited from LinkActionRequest
 getJSLinkActionRequest ()
 
 getLocalizedOptions ()
 
 LinkActionRequest ()
 

Detailed Description

Class defining a simple confirmation modal with a redirect url and ok/cancel buttons.

Definition at line 18 of file RedirectConfirmationModal.inc.php.

Member Function Documentation

RedirectConfirmationModal::getLocalizedOptions ( )
RedirectConfirmationModal::getRemoteUrl ( )

Get the remote url.

Returns
string

Definition at line 52 of file RedirectConfirmationModal.inc.php.

Referenced by getLocalizedOptions().

RedirectConfirmationModal::RedirectConfirmationModal (   $dialogText,
  $title = null,
  $remoteUrl = null,
  $titleIcon = null,
  $okButton = null,
  $cancelButton = null,
  $canClose = true 
)

Constructor

Parameters
$dialogTextstring The localized text to appear in the dialog modal.
$titlestring (optional) The localized modal title.
$remoteUrlstring (optional) A URL to be redirected to when the confirmation button is clicked.
$titleIconstring (optional) The icon to be used in the modal title bar.
$okButtonstring (optional) The localized text to appear on the confirmation button.
$cancelButtonstring (optional) The localized text to appear on the cancel button.
$canCloseboolean (optional) Whether the modal will have a close button.

Definition at line 38 of file RedirectConfirmationModal.inc.php.


The documentation for this class was generated from the following file: