Class: OnlineSessions
Source Location: /blogs/plugins/_whosonline.plugin.php
Class OnlineSessions
Class Overview
|
This tracks who is online Located in /blogs/plugins/_whosonline.plugin.php [line 136] Author(s):
|
[ Top ]
Property Summary
| mixed | $_count_guests | Number of guests (and users that want to be anonymous) |
| mixed | $_initialized | |
| mixed | $_registered_Users | List of registered users. |
| mixed | $_timeout_online_user | Online session timeout in seconds. |
[ Top ]
Method Summary
| OnlineSessions | OnlineSessions() | Constructor. |
| void | display_onliners() | Template function: Display onliners, both registered users and guests. |
| void | display_online_guests() | Template function: Display number of online guests. |
| void | display_online_users() | Template function: Display the registered users who are online |
| array | init() | Get an array of registered users and guests. |
| void | number_of_guests() | Get the number of guests. |
[ Top ]
Properties
mixed
$_count_guests
[line 145]
Number of guests (and users that want to be anonymous)
Gets lazy-filled when needed, through init().
API Tags:| Access: | protected |
[ Top ]
mixed
$_registered_Users
[line 155]
List of registered users.
Gets lazy-filled when needed, through init().
API Tags:| Access: | protected |
[ Top ]
mixed
$_timeout_online_user
[line 164]
Online session timeout in seconds.
Default value: 300 (5 minutes). Set by OnlineSessions::OnlineSessions().
API Tags:| Access: | protected |
[ Top ]
Methods
Constructor OnlineSessions [line 174]
|
Constructor.
Parameters:| integer | $timeout_online_user: | Online session timeout in seconds. |
[ Top ]
display_onliners [line 256]
|
Template function: Display onliners, both registered users and guests.
Parameters:| $params: |
Information Tags:
| Todo: | get class="" out of here (put it into skins) |
[ Top ]
display_online_guests [line 314]
|
Template function: Display number of online guests.
Parameters:| $params: |
[ Top ]
display_online_users [line 269]
|
Template function: Display the registered users who are online
Parameters:| array | $params: |
Information Tags:
| Todo: | get class="" out of here (put it into skins) |
[ Top ]
init [line 185]
|
Get an array of registered users and guests.
API Tags:
| Return: | containing number of registered users and guests ('registered' and 'guests') |
[ Top ]
