FusionDirectory
Public Member Functions | Static Public Member Functions | Protected Member Functions
msg_dialog Class Reference

This class contains all the function needed to make messages dialogs. More...

Public Member Functions

 __construct (string $title, string $message, int $type=INFO_DIALOG, array $trace=[])
 Message dialog constructor. More...
 
 is_confirmed ()
 Check if the message is confirmed by user. More...
 

Static Public Member Functions

static display ($title, string $message, int $type=INFO_DIALOG, array $trace=[])
 Display a message dialog. More...
 
static get_dialogs ()
 Accessor of the message dialog rendered HTML.
 

Protected Member Functions

 getDialogInfos ()
 Return an array with infos for the template.
 

Detailed Description

This class contains all the function needed to make messages dialogs.

Definition at line 38 of file class_msg_dialog.inc.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $title,
string  $message,
int  $type = INFO_DIALOG,
array  $trace = [] 
)

Message dialog constructor.

Parameters
string$titleThe title of the message dialog (plain string)
string$messageThe message of the message dialog (HTML)
int$typeThe type of the message dialog, by default = INFO_DIALOG
array$traceThe trace from where the message was built

Definition at line 57 of file class_msg_dialog.inc.

Member Function Documentation

◆ display()

static display (   $title,
string  $message,
int  $type = INFO_DIALOG,
array  $trace = [] 
)
static

Display a message dialog.

Parameters
string | object$titleThe title of the message dialog, or the error object
string$messageThe message of the message dialog (HTML)
int$typeThe type of the message dialog, by default = INFO_DIALOG
array$traceThe trace from where the message was built

Definition at line 125 of file class_msg_dialog.inc.

Referenced by simplePlugin\callHook(), and LoginMethod\runSteps().

◆ is_confirmed()

is_confirmed ( )

Check if the message is confirmed by user.

Returns
True if is confirmed, else return false

Definition at line 170 of file class_msg_dialog.inc.


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