96 if ( is_null($key) ) {
99 $this->sessionKey = (
string)$key;
117 public function now( $key, $value ) {
118 $this->messages[
'now'][(
string)$key] = $value;
119 return $this->
save();
128 public function set( $key, $value ) {
129 $this->messages[
'next'][(
string)$key] = $value;
130 return $this->
save();
138 return array_merge($this->messages[
'prev'], $this->messages[
'now']);
156 foreach ( $this->messages[
'prev'] as $key => $val ) {
157 $this->messages[
'next'][$key] = $val;
159 return $this->
save();
184 $this->
now($offset, $value);
188 unset($this->messages[
'prev'][$offset]);
189 unset($this->messages[
'now'][$offset]);
setSessionKey( $key)
Set the $_SESSION key used to access Flash messages.
getSessionKey()
Get the $_SESSION key used to access Flash messages.
Add rich text string
The name of the decorator.
offsetSet( $offset, $value)
keep()
Transfer Flash messages from the previous request so they are available to the next request...
save()
Save Flash messages to $_SESSION.
Create styles array
The data for the language used.
__construct( $sessionKey=null)
Constructor.
load()
Load Flash messages from $_SESSION.
getMessages()
Get Flash messages intended for the current request's View.
now( $key, $value)
Set a Flash message for the current request.