Phpxforms documentation

FlashMessage
in package

One-time session flash messaging

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$name  : string
$memory  : array<string, array<int, array{: mixed, : string}>>
$started  : bool
$timers  : array<string, array<int, int>>

Methods

__construct()  : mixed
__destruct()  : mixed
Remove unused session
add()  : void
Add message
get()  : array<int, array{: mixed, : string}>
Return full message data
getErrors()  : array<string, array<string|int, mixed>>
Return messages formatted as bootstrap alerts
is()  : bool
Check existence of selected group
load()  : void
Load session data
removeOld()  : void
Remove timed-out data
startUp()  : void
Initiate session

Properties

$memory

protected array<string, array<int, array{: mixed, : string}>> $memory = []

$timers

protected array<string, array<int, int>> $timers = []

Methods

__destruct()

Remove unused session

public __destruct() : mixed

add()

Add message

public add(string $data[, string $type = 'info' ][, string $group = '' ]) : void
Parameters
$data : string
$type : string = 'info'
$group : string = ''

get()

Return full message data

public get([string $group = '' ]) : array<int, array{: mixed, : string}>
Parameters
$group : string = ''
Tags
throws
InvalidArgumentException
Return values
array<int, array{: mixed, : string}>

getErrors()

Return messages formatted as bootstrap alerts

public getErrors([string $group = '' ]) : array<string, array<string|int, mixed>>
Parameters
$group : string = ''
Return values
array<string, array<string|int, mixed>>

is()

Check existence of selected group

public is([string $group = '' ]) : bool
Parameters
$group : string = ''
Return values
bool

removeOld()

Remove timed-out data

protected removeOld() : void

        
On this page

Search results