本文整理汇总了PHP中UserManager::get_user_list方法的典型用法代码示例。如果您正苦于以下问题:PHP UserManager::get_user_list方法的具体用法?PHP UserManager::get_user_list怎么用?PHP UserManager::get_user_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserManager
的用法示例。
在下文中一共展示了UserManager::get_user_list方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} else {
$users = array();
}
if (!empty($event_name)) {
$eventName = $event_name;
}
Event::save_event_type_message($eventName, $users, $eventMessage, $eventSubject, $eventMessageLanguage, $activated);
header('location: event_controller.php');
exit;
}
$ets = Event::get_all_event_types();
$languages = api_get_languages();
$ajaxPath = api_get_path(WEB_CODE_PATH) . 'inc/ajax/events.ajax.php';
$action_array = array(array('url' => 'event_controller.php?action=listing', 'content' => Display::return_icon('view_text.png', get_lang('ListView'), array(), ICON_SIZE_MEDIUM)));
$key_lang = get_lang('YouHaveSomeUnsavedChanges');
$users = UserManager::get_user_list(array(), array('firstname'));
$new_user_list = array();
foreach ($users as $user) {
if ($user['status'] == ANONYMOUS) {
continue;
}
$new_user_list[] = $user;
}
/**
* Header definition
*/
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array('url' => 'event_controller.php', 'name' => get_lang('Events'));
$tool_name = get_lang('EventMessageManagement');
Display::display_header($tool_name);
echo Display::actions($action_array);
示例2: isset
<?php
/* For licensing terms, see /license.txt */
require_once '../global.inc.php';
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
$event_name = isset($_REQUEST['eventName']) ? $_REQUEST['eventName'] : null;
api_protect_admin_script();
switch ($action) {
case 'getEventTypes':
$events = Event::get_all_event_types();
print json_encode($events);
break;
case 'getUsers':
$users = UserManager::get_user_list();
print json_encode($users);
break;
case 'get_event_users':
$users = Event::get_event_users($event_name);
print json_encode($users);
break;
}
exit;
示例3: get_lang
$table->set_column_filter(8, 'active_filter');
$table->set_column_filter(10, 'modify_filter');
// Only show empty actions bar if delete users has been blocked
if (api_is_platform_admin() && !$deleteUserAvailable) {
$table->set_form_actions(array('delete' => get_lang('DeleteFromPlatform')));
} else {
$table->set_form_actions(array('none' => get_lang('NoActionAvailable')));
}
$table_result = $table->return_table();
$extra_search_options = '';
//Try to search the user everywhere
if ($table->get_total_number_of_items() == 0) {
if (api_get_multiple_access_url() && isset($_REQUEST['keyword'])) {
$keyword = Database::escape_string($_REQUEST['keyword']);
$conditions = array('username' => $keyword);
$user_list = UserManager::get_user_list($conditions, array(), false, ' OR ');
if (!empty($user_list)) {
$extra_search_options = Display::page_subheader(get_lang('UsersFoundInOtherPortals'));
$table = new HTML_Table(array('class' => 'data_table'));
$column = 0;
$row = 0;
$headers = array(get_lang('User'), 'URL', get_lang('Actions'));
foreach ($headers as $header) {
$table->setHeaderContents($row, $column, $header);
$column++;
}
$row++;
foreach ($user_list as $user) {
$column = 0;
$access_info = UrlManager::get_access_url_from_user($user['id']);
$access_info_to_string = '';
示例4: api_get_self
$end = $default * $page;
$navigation = "{$begin} - {$end} / {$count}<br />";
if ($page > 1) {
$navigation .= '<a href="' . api_get_self() . '?page=' . ($page - 1) . '">' . get_lang('Previous') . '</a>';
} else {
$navigation .= get_lang('Previous');
}
$navigation .= ' ';
$page++;
if ($page < $nro_pages) {
$navigation .= '<a href="' . api_get_self() . '?page=' . $page . '">' . get_lang('Next') . '</a>';
} else {
$navigation .= get_lang('Next');
}
echo $navigation;
$user_list = UserManager::get_user_list(array(), array(), $begin, $default);
$session_list = SessionManager::get_sessions_list(array(), array('name'));
$options = '';
$options .= '<option value="0">--' . get_lang('SelectASession') . '--</option>';
foreach ($session_list as $session_data) {
$my_session_list[$session_data['id']] = $session_data['name'];
$options .= '<option value="' . $session_data['id'] . '">' . $session_data['name'] . '</option>';
}
$combinations = array();
if (!empty($user_list)) {
foreach ($user_list as $user) {
$user_id = $user['user_id'];
$name = $user['firstname'] . ' ' . $user['lastname'];
$course_list_registered = CourseManager::get_courses_list_by_user_id($user_id, true, false);
$new_course_list = array();
foreach ($course_list_registered as $course_reg) {
示例5: array_intersect
$final_result = array_intersect($extra_field_result[$i], $extra_field_result[$i + 1]);
}
}
} else {
$final_result = $extra_field_result[0];
}
}
$data = $usergroup->get($id);
$list_in = $usergroup->get_users_by_usergroup($id);
$list_all = $usergroup->get_users_by_usergroup();
$order = array('lastname');
if (api_is_western_name_order()) {
$order = array('firstname');
}
$elements_not_in = $elements_in = array();
$complete_user_list = UserManager::get_user_list(array(), $order);
if (!empty($complete_user_list)) {
foreach ($complete_user_list as $item) {
if ($use_extra_fields) {
if (!in_array($item['user_id'], $final_result)) {
continue;
}
}
if ($item['status'] == 6) {
continue;
}
//avoid anonymous users
if (in_array($item['user_id'], $list_in)) {
$person_name = api_get_person_name($item['firstname'], $item['lastname']) . ' (' . $item['username'] . ')';
$elements_in[$item['user_id']] = $person_name;
}