ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ( $sessionKey=null) | |
Constructor. More... | |
setSessionKey ( $key) | |
Set the $_SESSION key used to access Flash messages. More... | |
getSessionKey () | |
Get the $_SESSION key used to access Flash messages. More... | |
now ( $key, $value) | |
Set a Flash message for the current request. More... | |
set ( $key, $value) | |
Set a Flash message for the next request. More... | |
getMessages () | |
Get Flash messages intended for the current request's View. More... | |
load () | |
Load Flash messages from $_SESSION. More... | |
keep () | |
Transfer Flash messages from the previous request so they are available to the next request. More... | |
save () | |
Save Flash messages to $_SESSION. More... | |
offsetExists ( $offset) | |
offsetGet ( $offset) | |
offsetSet ( $offset, $value) | |
offsetUnset ( $offset) | |
Protected Attributes | |
$sessionKey = 'flash' | |
$messages | |
Slim_Session_Flash::__construct | ( | $sessionKey = null | ) |
Constructor.
Establishes Flash session key and loads existing Flash messages from the $_SESSION.
string | $sessionKey |
Definition at line 82 of file Flash.php.
References $sessionKey, load(), and setSessionKey().
Slim_Session_Flash::getMessages | ( | ) |
Get Flash messages intended for the current request's View.
Definition at line 137 of file Flash.php.
Referenced by offsetExists(), and offsetGet().
Slim_Session_Flash::getSessionKey | ( | ) |
Get the $_SESSION key used to access Flash messages.
Definition at line 107 of file Flash.php.
References $sessionKey.
Slim_Session_Flash::keep | ( | ) |
Transfer Flash messages from the previous request so they are available to the next request.
Definition at line 155 of file Flash.php.
References save().
Slim_Session_Flash::load | ( | ) |
Load Flash messages from $_SESSION.
Definition at line 145 of file Flash.php.
References $_SESSION, $sessionKey, and array.
Referenced by __construct().
Slim_Session_Flash::now | ( | $key, | |
$value | |||
) |
Set a Flash message for the current request.
string | $key | |
string | $value |
Definition at line 117 of file Flash.php.
References save(), and string.
Referenced by offsetSet().
Slim_Session_Flash::offsetExists | ( | $offset | ) |
Definition at line 173 of file Flash.php.
References $messages, and getMessages().
Slim_Session_Flash::offsetGet | ( | $offset | ) |
Definition at line 178 of file Flash.php.
References $messages, and getMessages().
Slim_Session_Flash::offsetSet | ( | $offset, | |
$value | |||
) |
Definition at line 183 of file Flash.php.
References now().
Slim_Session_Flash::offsetUnset | ( | $offset | ) |
Slim_Session_Flash::save | ( | ) |
Save Flash messages to $_SESSION.
Definition at line 166 of file Flash.php.
References $_SESSION, and $sessionKey.
Referenced by keep(), now(), and set().
Slim_Session_Flash::set | ( | $key, | |
$value | |||
) |
Set a Flash message for the next request.
string | $key | |
string | $value |
Definition at line 128 of file Flash.php.
References save(), and string.
Slim_Session_Flash::setSessionKey | ( | $key | ) |
Set the $_SESSION key used to access Flash messages.
string | $key |
RuntimeException | If session key is null |
Definition at line 95 of file Flash.php.
References string.
Referenced by __construct().
|
protected |
Definition at line 67 of file Flash.php.
Referenced by offsetExists(), and offsetGet().
|
protected |
Definition at line 62 of file Flash.php.
Referenced by __construct(), getSessionKey(), load(), and save().