Definition at line 18 of file ElggSession.php.
ElggSession::__isset |
( |
|
$key | ) |
|
Test if property is set either as an attribute or metadata.
- Parameters
-
string | $key | The name of the attribute or metadata. |
- Returns
- bool
Definition at line 240 of file ElggSession.php.
ElggSession::generateSessionToken |
( |
| ) |
|
|
protected |
Adds a token to the session.
This is used in creation of CSRF token
- Returns
- void
Definition at line 225 of file ElggSession.php.
ElggSession::get |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Get an attribute of the session.
- Parameters
-
string | $name | Name of the attribute to get |
mixed | $default | Value to return if attribute is not set (default is null) |
- Returns
- mixed
Definition at line 136 of file ElggSession.php.
Get the session ID.
- Returns
- string
- Since
- 1.9
Definition at line 93 of file ElggSession.php.
ElggSession::getLoggedInUser |
( |
| ) |
|
Get the session name.
- Returns
- string
- Since
- 1.9
Definition at line 114 of file ElggSession.php.
ElggSession::has |
( |
|
$name | ) |
|
Has the attribute been defined.
- Parameters
-
string | $name | Name of the attribute |
- Returns
- bool
- Since
- 1.9
Definition at line 181 of file ElggSession.php.
ElggSession::invalidate |
( |
| ) |
|
Invalidates the session.
Deletes session data and session persistence. Starts a new session.
- Returns
- boolean
- Since
- 1.9
Definition at line 69 of file ElggSession.php.
ElggSession::isStarted |
( |
| ) |
|
Has the session been started.
- Returns
- boolean
- Since
- 1.9
Definition at line 83 of file ElggSession.php.
ElggSession::migrate |
( |
|
$destroy = false | ) |
|
Migrates the session to a new session id while maintaining session attributes.
- Parameters
-
boolean | $destroy | Whether to delete the session or let gc handle clean up |
- Returns
- boolean
- Since
- 1.9
Definition at line 57 of file ElggSession.php.
ElggSession::offsetExists |
( |
|
$offset | ) |
|
Return whether the value is set in either the session or the cache.
- See also
- ArrayAccess::offsetExists()
- Parameters
-
- Returns
- bool
Definition at line 333 of file ElggSession.php.
ElggSession::offsetGet |
( |
|
$key | ) |
|
Get a variable from either the session, or if its not in the session attempt to get it from an api call.
- See also
- ArrayAccess::offsetGet()
- Parameters
-
- Returns
- mixed
Definition at line 271 of file ElggSession.php.
ElggSession::offsetSet |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Set a value, go straight to session.
- Parameters
-
string | $key | Name |
mixed | $value | Value |
- Returns
- void
Definition at line 255 of file ElggSession.php.
ElggSession::offsetUnset |
( |
|
$key | ) |
|
Unset a value from the cache and the session.
- See also
- ArrayAccess::offsetUnset()
- Parameters
-
- Returns
- void
Definition at line 318 of file ElggSession.php.
ElggSession::remove |
( |
|
$name | ) |
|
Remove an attribute.
- Parameters
-
string | $name | The name of the attribute to remove |
- Returns
- mixed The removed attribute
- Since
- 1.9
Definition at line 158 of file ElggSession.php.
ElggSession::removeLoggedInUser |
( |
| ) |
|
Remove the logged in user.
- Returns
- void
- Since
- 1.9
Definition at line 213 of file ElggSession.php.
ElggSession::set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Set an attribute.
- Parameters
-
string | $name | Name of the attribute to set |
mixed | $value | Value to be set |
- Returns
- void
Definition at line 147 of file ElggSession.php.
ElggSession::setId |
( |
|
$id | ) |
|
Set the session ID.
- Parameters
-
- Returns
- void
- Since
- 1.9
Definition at line 104 of file ElggSession.php.
ElggSession::setLoggedInUser |
( |
ElggUser |
$user | ) |
|
Sets the logged in user.
- Parameters
-
- Returns
- void
- Since
- 1.9
Definition at line 192 of file ElggSession.php.
ElggSession::setName |
( |
|
$name | ) |
|
Set the session name.
- Parameters
-
- Returns
- void
- Since
- 1.9
Definition at line 125 of file ElggSession.php.
Start the session.
- Returns
- boolean
- Exceptions
-
RuntimeException | If session fails to start. |
- Since
- 1.9
Definition at line 44 of file ElggSession.php.
ElggSession::$loggedInUser |
|
protected |
The documentation for this class was generated from the following file: