ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct ($sessionKey=null) | |
Constructor. | |
setSessionKey ($key) | |
Set the $_SESSION key used to access Flash messages. | |
getSessionKey () | |
Get the $_SESSION key used to access Flash messages. | |
now ($key, $value) | |
Set a Flash message for the current request. | |
set ($key, $value) | |
Set a Flash message for the next request. | |
getMessages () | |
Get Flash messages intended for the current request's View. | |
load () | |
Load Flash messages from $_SESSION. | |
keep () | |
Transfer Flash messages from the previous request so they are available to the next request. | |
save () | |
Save Flash messages to $_SESSION. | |
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, and $sessionKey.
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().
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 | |||
) |
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().
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.
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().