Jelix 1.8.12

jMessage
in package

Utility class to log some message in session in order to be displayed in a template.

Tags
subpackage

utils

static

Table of Contents

$session_name  : mixed
add()  : mixed
Add a message.
clear()  : mixed
Clear messages for the given type.
clearAll()  : mixed
Clear all messages.
get()  : mixed
Get messages for the given type.
getAll()  : mixed
Get all messages.

Properties

$session_name

protected static mixed $session_name = 'JELIX_MESSAGE'
Tags

Methods

add()

Add a message.

public static add(string $message[, string $type = 'default' ]) : mixed
Parameters
$message : string

the message

$type : string = 'default'

the message type ('default' by default)

Tags
Return values
mixed

clear()

Clear messages for the given type.

public static clear([string $type = 'default' ]) : mixed
Parameters
$type : string = 'default'

the message type ('default' by default)

Tags
Return values
mixed

clearAll()

Clear all messages.

public static clearAll() : mixed
Tags
Return values
mixed

get()

Get messages for the given type.

public static get([string $type = 'default' ]) : mixed
Parameters
$type : string = 'default'

the message type ('default' by default)

Tags
Return values
mixed

array/null

getAll()

Get all messages.

public static getAll() : mixed
Tags
Return values
mixed

array/null

Search results