Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
MessageBox Class Reference
Collaboration diagram for MessageBox:
Collaboration graph

Static Public Member Functions

static exception ($message, $details=array(), $close_details=false)
static error ($message, $details=array(), $close_details=false)
static success ($message, $details=array(), $close_details=false)
static info ($message, $details=array(), $close_details=false)

Detailed Description

class MessageBox

usage:

echo MessageBox::error('Nachricht', array('optional details'));

use the optional parameter $close_details for displaying the messagebox with closed details

echo MessageBox::success('Nachricht', array('optional details'), true);

Member Function Documentation

static error (   $message,
  $details = array(),
  $close_details = false 
)
static

This function shows an error-messagebox. Use it for validation errors, problems and other wrong user input.

Parameters
string$message
array()$details (optional)
boolean$close_details(optional)
Returns
string html-output of the messagebox

Here is the caller graph for this function:

static exception (   $message,
  $details = array(),
  $close_details = false 
)
static

This function shows an exception-messagebox. Use it only for systemerrors or security related problems.

Parameters
string$message
array()$details
boolean$close_details
Returns
string html-output of the messagebox
static info (   $message,
  $details = array(),
  $close_details = false 
)
static

This function shows an info messagebox. Use it to report neutral informations.

Parameters
string$message
array()$details (optional)
boolean$close_details(optional)
Returns
string html-output of the messagebox

Here is the caller graph for this function:

static success (   $message,
  $details = array(),
  $close_details = false 
)
static

This function shows a success messagebox. Use it for confirmation of user interaction.

Parameters
string$message
array()$details (optional)
boolean$close_details(optional)
Returns
string html-output of the messagebox

Here is the caller graph for this function:


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