|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct (&$db) | |
| XoopsOnlineHandler (&$db) | |
| write ($uid, $uname, $time, $module, $ip) | |
| destroy ($uid) | |
| gc ($expire) | |
| & | getAll ($criteria=null) |
| getCount ($criteria=null) | |
Data Fields | |
| $db | |
Definition at line 14 of file online.php.
| __construct | ( | & | $db | ) |
| destroy | ( | $uid | ) |
Delete online information for a user
| int | $uid | UID |
Definition at line 80 of file online.php.
| gc | ( | $expire | ) |
Garbage Collection
Delete all online information that has not been updated for a certain time
| int | $expire | Expiration time in seconds |
Definition at line 96 of file online.php.
| & getAll | ( | $criteria = null | ) |
Get an array of online information
| object | $criteria | CriteriaElement |
Definition at line 108 of file online.php.
| getCount | ( | $criteria = null | ) |
Count the number of online users
| object | $criteria | CriteriaElement |
Definition at line 136 of file online.php.
| write | ( | $uid, | |
| $uname, | |||
| $time, | |||
| $module, | |||
| $ip ) |
Write online information to the database
| int | $uid | UID of the active user |
| string | $uname | Username |
| $time | ||
| string | $module | Current module |
| string | $ip | User's IP adress |
Definition at line 49 of file online.php.
| XoopsOnlineHandler | ( | & | $db | ) |
Definition at line 33 of file online.php.
| $db |
Definition at line 23 of file online.php.