本文整理汇总了PHP中SocialManager::display_user_list方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialManager::display_user_list方法的具体用法?PHP SocialManager::display_user_list怎么用?PHP SocialManager::display_user_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocialManager
的用法示例。
在下文中一共展示了SocialManager::display_user_list方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
if (api_get_setting('allow_social_tool') == 'true') {
if (!api_is_anonymous()) {
//this include the social menu div
$social_left_content = SocialManager::show_social_menu('whoisonline');
}
}
}
if ($user_list) {
if (!isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
if (!api_is_anonymous()) {
$query = isset($_GET['q']) ? $_GET['q'] : null;
$social_right_content .= '<div class="span9">' . UserManager::get_search_form($query) . '</div>';
}
}
$social_right_content .= SocialManager::display_user_list($user_list);
}
}
if (isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
header("Location: " . api_get_path(WEB_CODE_PATH) . "social/profile.php?u=" . intval($_GET['id']));
exit;
} else {
SocialManager::display_individual_user($_GET['id']);
}
}
} else {
api_not_allowed();
exit;
}
$app['title'] = get_lang('UsersOnLineList');
示例2: isset
}
}
}
*/
if ($user_list) {
if (!isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
if (!api_is_anonymous()) {
$query = isset($_GET['q']) ? $_GET['q'] : null;
$social_search .= UserManager::get_search_form($query);
}
}
//$social_right_content .= SocialManager::display_user_list($user_list);
}
}
$whoisonline_list .= SocialManager::display_user_list($user_list);
if (isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true' && api_user_is_login()) {
header("Location: " . api_get_path(WEB_CODE_PATH) . "social/profile.php?u=" . intval($_GET['id']));
exit;
} else {
$social_right_content .= SocialManager::display_individual_user($_GET['id']);
}
}
} else {
api_not_allowed();
exit;
}
$tpl = new Template(get_lang('UsersOnLineList'));
if (api_get_setting('allow_social_tool') == 'true' && !api_is_anonymous()) {
$tpl->assign('whoisonline', $whoisonline_list);
示例3: switch
/* For licensing terms, see /license.txt */
//require_once '../global.inc.php';
$action = $_GET['a'];
switch ($action) {
case 'load_online_user':
if (isset($_SESSION['who_is_online_counter'])) {
$_SESSION['who_is_online_counter']++;
} else {
$_SESSION['who_is_online_counter'] = 2;
}
$images_to_show = 9;
$page = intval($_REQUEST['online_page_nr']);
$max_page = ceil(UserManager::whoIsOnlineCount() / $images_to_show);
$page_rows = ($page - 1) * 9;
if (!empty($max_page) && $page <= $max_page) {
if (isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) {
$user_list = who_is_online_in_this_course($page_rows, $images_to_show, api_get_user_id(), api_get_setting('display.time_limit_whosonline'), $_GET['cidReq']);
} else {
$user_list = UserManager::whoIsOnline($page_rows, $images_to_show);
}
if (!empty($user_list)) {
echo SocialManager::display_user_list($user_list, false);
exit;
}
}
echo 'end';
break;
default:
break;
}
示例4: switch
*/
require_once '../global.inc.php';
$action = $_GET['a'];
switch ($action) {
case 'load_online_user':
if (isset($_SESSION['who_is_online_counter'])) {
$_SESSION['who_is_online_counter']++;
} else {
$_SESSION['who_is_online_counter'] = 2;
}
$images_to_show = 9;
$page = intval($_REQUEST['online_page_nr']);
$max_page = round(Online::who_is_online_count() / $images_to_show);
$page_rows = ($page - 1) * 9 + 1;
if (!empty($max_page) && $page <= $max_page) {
if (isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) {
$user_list = Online::who_is_online_in_this_course($page_rows, $images_to_show, api_get_user_id(), api_get_setting('time_limit_whosonline'), $_GET['cidReq']);
} else {
$user_list = Online::who_is_online($page_rows, $images_to_show);
}
if (!empty($user_list)) {
echo SocialManager::display_user_list($user_list);
exit;
}
}
echo 'end';
break;
default:
break;
}
exit;