interface Alert

Methods

void
setReturn(boolean $return)

Tells if the library should return the javascript code or run it in the browser.

void
getReturn()

Tells if the library should return the js code or run it in the browser.

void
success(string $message, string|null $title = null)

Print a success message.

void
info(string $message, string|null $title = null)

Print an information message.

void
warning(string $message, string|null $title = null)

Print a warning message.

void
error(string $message, string|null $title = null)

Print an error message.

Details

at line line 24
void setReturn(boolean $return)

Tells if the library should return the javascript code or run it in the browser.

Parameters

boolean $return Whether to return the code

Return Value

void

at line line 31
void getReturn()

Tells if the library should return the js code or run it in the browser.

Return Value

void

at line line 41
void success(string $message, string|null $title = null)

Print a success message.

Parameters

string $message The text of the message
string|null $title The title of the message

Return Value

void

at line line 51
void info(string $message, string|null $title = null)

Print an information message.

Parameters

string $message The text of the message
string|null $title The title of the message

Return Value

void

at line line 61
void warning(string $message, string|null $title = null)

Print a warning message.

Parameters

string $message The text of the message
string|null $title The title of the message

Return Value

void

at line line 71
void error(string $message, string|null $title = null)

Print an error message.

Parameters

string $message The text of the message
string|null $title The title of the message

Return Value

void