FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | Public Attributes | List of all members
status Class Reference

Static Public Member Functions

static info ($message, $translate=TRUE, $args=array())
 Adds info message to queue.
static success ($message, $translate=TRUE, $args=array())
 Adds success message to queue.
static warning ($message, $translate=TRUE, $args=array())
 Adds warning message to queue.
static error ($message, $exception=NULL, $translate=TRUE, $args=array())
 Adds error message to queue.
static msuccess ($message, $translate=TRUE, $args=array())
 Adds success message to memory queue.
static mwarning ($message, $translate=TRUE, $args=array())
 Adds warning message to memory queue.
static merror ($message, $exception=NULL, $translate=TRUE, $args=array())
 Adds error message to memory queue.
static minfo ($message, $translate=TRUE, $args=array())
 Adds info message to queue.
static render ()
 Renders all messages stored in session queue.

Public Attributes

const TYPE_SUCCESS = 0
 Status message type success.
const TYPE_WARNING = 1
 Status message type warning.
const TYPE_ERROR = 2
 Status message type error.
const TYPE_INFO = 3
 Status message type info.
const SESSION_VAR_NAME = 'status_message'
 Session var name.

Member Function Documentation

static status::error (   $message,
  $exception = NULL,
  $translate = TRUE,
  $args = array() 
)
static

Adds error message to queue.

Parameters
string$messageInfo message
Exception$exceptionException that lead to this error
string$translateEnable auto-translation of message
array$argsArguments of message
static status::info (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds info message to queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message
static status::merror (   $message,
  $exception = NULL,
  $translate = TRUE,
  $args = array() 
)
static

Adds error message to memory queue.

Parameters
string$messageInfo message
Exception$exceptionException that lead to this error
string$translateEnable auto-translation of message
array$argsArguments of message
static status::minfo (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds info message to queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message
static status::msuccess (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds success message to memory queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message
static status::mwarning (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds warning message to memory queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message
static status::render ( )
static

Renders all messages stored in session queue.

Returns
string
static status::success (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds success message to queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message
static status::warning (   $message,
  $translate = TRUE,
  $args = array() 
)
static

Adds warning message to queue.

Parameters
string$messageInfo message
string$translateEnable auto-translation of message
array$argsArguments of message

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