Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
SessionDAO Class Reference
Inheritance diagram for SessionDAO:
DAO

Public Member Functions

 deleteAllSessions ()
 
 deleteObject (&$session)
 
 deleteSessionById ($sessionId)
 
 deleteSessionByLastUsed ($lastUsed, $lastUsedRemember=0)
 
 deleteSessionsByUserId ($userId)
 
getSession ($sessionId)
 
 insertSession (&$session)
 
 newDataObject ()
 
 SessionDAO ()
 
 sessionExistsById ($sessionId)
 
 updateObject (&$session)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying Session objects.

See Also
Session

Definition at line 20 of file SessionDAO.inc.php.

Member Function Documentation

SessionDAO::deleteAllSessions ( )

Delete all sessions.

Definition at line 180 of file SessionDAO.inc.php.

References DAO\update().

SessionDAO::deleteObject ( $session)

Delete a session.

Parameters
$sessionSession

Definition at line 127 of file SessionDAO.inc.php.

References deleteSessionById().

SessionDAO::deleteSessionById (   $sessionId)

Delete a session by ID.

Parameters
$sessionIdstring

Definition at line 140 of file SessionDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

SessionDAO::deleteSessionByLastUsed (   $lastUsed,
  $lastUsedRemember = 0 
)

Delete all sessions older than the specified time.

Parameters
$lastUsedint cut-off time in seconds for not-remembered sessions
$lastUsedRememberint optional, cut-off time in seconds for remembered sessions

Definition at line 163 of file SessionDAO.inc.php.

References DAO\update().

SessionDAO::deleteSessionsByUserId (   $userId)

Delete sessions by user ID.

Parameters
$userIdstring

Definition at line 151 of file SessionDAO.inc.php.

References DAO\update().

& SessionDAO::getSession (   $sessionId)

Retrieve a session by ID.

Parameters
$sessionIdstring
Returns
Session

Definition at line 40 of file SessionDAO.inc.php.

References newDataObject(), and DAO\retrieve().

SessionDAO::insertSession ( $session)

Insert a new session.

Parameters
$sessionSession

Definition at line 71 of file SessionDAO.inc.php.

References DAO\update().

SessionDAO::newDataObject ( )

Instantiate and return a new data object.

Definition at line 31 of file SessionDAO.inc.php.

Referenced by getSession().

SessionDAO::SessionDAO ( )

Constructor

Definition at line 24 of file SessionDAO.inc.php.

SessionDAO::sessionExistsById (   $sessionId)

Check if a session exists with the specified ID.

Parameters
$sessionIdstring
Returns
boolean

Definition at line 189 of file SessionDAO.inc.php.

References DAO\retrieve().

SessionDAO::updateObject ( $session)

Update an existing session.

Parameters
$sessionSession

Definition at line 93 of file SessionDAO.inc.php.

References DAO\update().


The documentation for this class was generated from the following file: