[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/kernel/ -> online.php (sommaire)

(pas de description)

Author: Kazumi Ono <onokazu@xoops.org>
Copyright: copyright (c) 2000-2003 XOOPS.org
Poids: 175 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

XoopsOnlineHandler:: (6 méthodes):
  XoopsOnlineHandler()
  write()
  destroy()
  gc()
  getAll()
  getCount()


Classe: XoopsOnlineHandler  - X-Ref

A handler for "Who is Online?" information

XoopsOnlineHandler(&$db)   X-Ref
Constructor

param: object  &$db    {@link XoopsHandlerFactory}

write($uid, $uname, $time, $module, $ip)   X-Ref
Write online information to the database

param: int     $uid    UID of the active user
param: string  $uname  Username
param: string  $timestamp
param: string  $module Current module
param: string  $ip     User's IP adress
return: bool    TRUE on success

destroy($uid)   X-Ref
Delete online information for a user

param: int $uid    UID
return: bool    TRUE on success

gc($expire)   X-Ref
Garbage Collection

Delete all online information that has not been updated for a certain time

param: int $expire Expiration time in seconds

getAll($criteria = null)   X-Ref
Get an array of online information

param: object  $criteria   {@link CriteriaElement}
return: array   Array of associative arrays of online information

getCount($criteria = null)   X-Ref
Count the number of online users

param: object  $criteria   {@link CriteriaElement}



Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics