22 public function addMessage($type, $content, $icon=NULL) {
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.
addMessage($type, $content, $icon=NULL)
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.