Class: Sessions
Source Location: /blogs/inc/MODEL/sessions/_sessions.class.php
Class Sessions
Class Overview
|
Located in /blogs/inc/MODEL/sessions/_sessions.class.php [line 40] Widget | --SessionsAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From Widget |
Inherited From Widget
|
[ 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. |
[ Top ]
Method Summary
| void | display_onliners() | Template function: Display onliners, both registered users and guests. |
| string | display_online_guests() | Template function: Display number of online guests. |
| array | 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. |
| string | replace_callback() | Widget callback for template vars. |
[ Top ]
Properties
Methods
display_onliners [line 209]
|
Template function: Display onliners, both registered users and guests.
Information Tags:
| Todo: | get class="" out of here (put it into skins) |
[ Top ]
display_online_guests [line 183]
|
Template function: Display number of online guests.
Parameters:| $before: | ||
| $after: |
[ Top ]
display_online_users [line 143]
|
Template function: Display the registered users who are online
Parameters:| string | $beforeAll: | To be displayed before all users |
| string | $afterAll: | To be displayed after all users |
| string | $templateEach: | Template to display for each user, see replace_callback() |
API Tags:
| Return: | containing number of registered users and guests |
Information Tags:
| Todo: | get class="" out of here (put it into skins) |
[ Top ]
init [line 70]
|
Get an array of registered users and guests.
API Tags:
| Return: | containing number of registered users and guests ('registered' and 'guests') |
[ Top ]
number_of_guests [line 117]
|
Get the number of guests.
Parameters:| boolean | $display: | display? |
[ Top ]
replace_callback [line 229]
|
Widget callback for template vars.
This replaces user properties if set through $user_xxx$ and especially $user_msgformlink$.
This allows to replace template vars, see Widget::replace_callback().
Parameters:| array | $matches: | |
| User | $User: | an optional User object |
Redefinition of:
- Widget::replace_callback()
- Callback function used to replace only necessary values in template.
[ Top ]
