Ubiquity  2.0.0
php rapid development framework
FlashBag Class Reference

Bag for Session Flash messages. More...

+ Inheritance diagram for FlashBag:

Public Member Functions

 __construct ()
 
 addMessage ($type, $content, $icon=NULL)
 
 getMessages ($type)
 
 getAll ()
 
 clear ()
 
 rewind ()
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 
 save ()
 

Data Fields

const FLASH_BAG_KEY ="_flash_bag"
 

Private Attributes

 $array
 
 $position
 

Detailed Description

Bag for Session Flash messages.

Author
jc

Definition at line 12 of file FlashBag.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 17 of file FlashBag.php.

Member Function Documentation

◆ addMessage()

addMessage (   $type,
  $content,
  $icon = NULL 
)

Definition at line 22 of file FlashBag.php.

◆ clear()

clear ( )

Definition at line 39 of file FlashBag.php.

◆ current()

current ( )

Definition at line 47 of file FlashBag.php.

◆ getAll()

getAll ( )

Definition at line 35 of file FlashBag.php.

◆ getMessages()

getMessages (   $type)

Definition at line 26 of file FlashBag.php.

◆ key()

key ( )

Definition at line 51 of file FlashBag.php.

◆ next()

next ( )

Definition at line 55 of file FlashBag.php.

◆ rewind()

rewind ( )

Definition at line 43 of file FlashBag.php.

◆ save()

save ( )

Definition at line 63 of file FlashBag.php.

◆ valid()

valid ( )

Definition at line 59 of file FlashBag.php.

Field Documentation

◆ $array

$array
private

Definition at line 14 of file FlashBag.php.

◆ $position

$position
private

Definition at line 15 of file FlashBag.php.

◆ FLASH_BAG_KEY

const FLASH_BAG_KEY ="_flash_bag"

Definition at line 13 of file FlashBag.php.


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