[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/libraries/joomla/database/table/ -> session.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 209 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JTableSession:: (7 methods):
  __construct()
  insert()
  update()
  destroy()
  purge()
  exists()
  delete()


Class: JTableSession  - X-Ref

Session table

__construct(&$db)   X-Ref
Constructor

param: JDatabase  &$db  A database connector object.

insert($sessionId, $clientId)   X-Ref
Insert a session

param: string   $sessionId  The session id
param: integer  $clientId   The id of the client application
return: boolean  True on success

update($updateNulls = false)   X-Ref
Updates the session

param: boolean  $updateNulls  True to update fields even if they are null.
return: boolean  True on success.

destroy($userId, $clientIds = array()   X-Ref
Destroys the pre-existing session

param: integer  $userId     Identifier of the user for this session.
param: array    $clientIds  Array of client ids for which session(s) will be destroyed
return: boolean  True on success.

purge($maxLifetime = 1440)   X-Ref
Purge old sessions

param: integer  $maxLifetime  Session age in seconds
return: mixed  Resource on success, null on fail

exists($userid)   X-Ref
Find out if a user has a one or more active sessions

param: integer  $userid  The identifier of the user
return: boolean  True if a session for this user exists

delete($oid = null)   X-Ref
Overloaded delete method

We must override it because of the non-integer primary key

param: integer  $oid  The object id (optional).
return: mixed  True if successful otherwise an error message



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1