Encapsulates a session associated with an incoming HTTP request.
More...
Public Member Functions
Detailed Description
Encapsulates a session associated with an incoming HTTP request.
Typically this is populated with the contents of the $_SESSION superglobal upon instantiation.
- Author:
- Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php
Definition at line 17 of file DMSession.php.
Member Function Documentation
| DMSession::addFavorite |
( |
DMObject $ |
obj | ) |
|
Saves a DMObject to the user's favorites.
Must be called before the HTTP header has been output. Duplicate objects will not be saved.
- Returns:
- void
Definition at line 32 of file DMSession.php.
| DMSession::addHasCommented |
( |
DMObject $ |
obj | ) |
|
- Parameters:
-
- Returns:
- void
- Since:
- 0.1
Definition at line 206 of file DMSession.php.
| DMSession::addHasRated |
( |
DMObject $ |
obj | ) |
|
| DMSession::addRecentlyViewedObject |
( |
DMObject $ |
obj | ) |
|
Adds an object to the stack of recently viewed objects.
If the given object is the same as the last object in the stack, it is not added.
- Parameters:
-
Definition at line 311 of file DMSession.php.
| DMSession::deleteFavorites |
( |
array $ |
objects | ) |
|
Deletes multiple DMObjects by removing them from the user's cookie and then destroying them.
Must be called before the HTTP header has been output.
- Parameters:
-
| array | objects Array of DMObjects |
- Returns:
- void
Definition at line 94 of file DMSession.php.
| DMSession::getAccessibleFavorites |
( |
DMTemplateSet $ |
template_set | ) |
|
Returns an array of all DMObjects in the user's favorites that are accessible from within the given template set.
- Parameters:
-
- Returns:
- Array of DMObjects, or an empty array if none exist
- See also:
- getObjects()
Definition at line 64 of file DMSession.php.
| DMSession::getAllFavorites |
( |
| ) |
|
| DMSession::getRecentlyViewedObjects |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects, sorted in chronological order. No duplicate objects will be returned.
Definition at line 328 of file DMSession.php.
| DMSession::getResultsView |
( |
| ) |
|
| DMSession::getSearchInput |
( |
| ) |
|
| DMSession::hasCommentedOnObject |
( |
DMObject $ |
obj | ) |
|
- Parameters:
-
- Returns:
- Boolean
- Since:
- 0.1
Definition at line 185 of file DMSession.php.
- Returns:
- Array of all alias/ptr pairs that have been rated
- Since:
- 0.1
Definition at line 237 of file DMSession.php.
| DMSession::hasRatedObject |
( |
DMObject $ |
obj | ) |
|
| DMSession::setFlash |
( |
DMFlash $ |
flash | ) |
|
- Parameters:
-
- Returns:
- void
- Since:
- 0.1
Definition at line 293 of file DMSession.php.
- Parameters:
-
- Returns:
- void
- Since:
- 2.0
Definition at line 361 of file DMSession.php.
| DMSession::setSearchInput |
( |
DMInput $ |
input | ) |
|
- Parameters:
-
- Returns:
- void
- Since:
- 0.3
Definition at line 387 of file DMSession.php.
| DMSession::setUser |
( |
DMUser $ |
user | ) |
|
| DMSession::unsetFlash |
( |
| ) |
|
| DMSession::unsetQuery |
( |
| ) |
|
| DMSession::unsetResultsView |
( |
| ) |
|
| DMSession::unsetSearchInput |
( |
| ) |
|
The documentation for this class was generated from the following file: