22 public function addMessage($content,$title=NULL,$type=
"info",$icon=null) {
23 $this->array[]=
new FlashMessage($content,$title,$type,$icon);
28 foreach ( $this->array as $msg ) {
29 if ($msg->getType() == $type)
51 public function key() {
60 return isset($this->array[$this->position]);
64 $this->array=
USession::set(self::FLASH_BAG_KEY, $this->array);
static delete($key)
Deletes the key in Session.
static set($key, $value)
Adds or sets a value to the Session at position $key.
static get($key, $default=NULL)
Returns the value stored at the key position in session.
Bag for Session Flash messages.
static start($name=null)
Start new or resume existing session.
addMessage($content, $title=NULL, $type="info", $icon=null)