
Public Member Functions | |
| getStartDateTime () | |
| The DateTime this session has started. | |
| getEndDateTime () | |
| The DateTime this session has ended. | |
| getUser () | |
| Provides the acting user within this session. | |
| changeUser (spunQ_User $user) | |
| Changes the acting user within this session. | |
| userChanged () | |
| Whether the user has changed while processing the current request. | |
| setData ($name, $value) | |
| Adds arbitrary data to this session as a key/value pair. | |
| getData ($name=NULL) | |
| Retrieves previously stored data. | |
Implementing classes are responsible for defining the start and the end of a session.
Definition at line 8 of file ISession.interface.php.
| spunQ_ISession::changeUser | ( | spunQ_User $ | user | ) |
Changes the acting user within this session.
| $user | The new user owning this session. |
$this Implemented in spunQ_ArraySession.
| spunQ_ISession::getData | ( | $ | name = NULL |
) |
Retrieves previously stored data.
| $name | Name of the data to store. Will return all data as an associative array if this parameter is omitted. |
Implemented in spunQ_ArraySession.
| spunQ_ISession::getEndDateTime | ( | ) |
The DateTime this session has ended.
NULL if this is an ongoing session (one that is still accepting requests). Implemented in spunQ_ArraySession.
| spunQ_ISession::getStartDateTime | ( | ) |
The DateTime this session has started.
The DateTime of the first request within this session.
Implemented in spunQ_ArraySession.
| spunQ_ISession::getUser | ( | ) |
| spunQ_ISession::setData | ( | $ | name, | |
| $ | value | |||
| ) |
Adds arbitrary data to this session as a key/value pair.
| $name | Name of the data to store. | |
| $value | The actual data to store. |
$this Implemented in spunQ_ArraySession.
| spunQ_ISession::userChanged | ( | ) |
Whether the user has changed while processing the current request.
Implemented in spunQ_ArraySession.
1.5.9