Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
widgets
online_users
content.php
Go to the documentation of this file.
1
<?php
6
$widget
=
elgg_extract
(
'entity'
,
$vars
);
7
8
$num_display
=
sanitize_int
(
$widget
->num_display,
false
);
9
// set default value for display number
10
if
(!
$num_display
) {
11
$num_display
= 8;
12
}
13
14
echo
get_online_users
([
15
'pagination'
=>
false
,
16
'limit'
=>
$num_display
,
17
]);
$widget
if(elgg_in_context('default_widgets')) $widget
Definition:
content.php:8
get_online_users
get_online_users(array $options=array())
Render a list of currently online users.
Definition:
statistics.php:89
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$num_display
$num_display
Definition:
content.php:7
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1375
$vars
$vars['title']
Definition:
content.php:19
sanitize_int
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition:
database.php:180
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11