public/main/user/user_import.php
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = $user_data['id'];
- Exclude checks
Variable "invalid_users" is not in valid camel caps format Open
Open
if (empty($invalid_users)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (empty($course_code)) {
- Exclude checks
Variable "clean_users" is not in valid camel caps format Open
Open
$clean_users = [];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
if (UserManager::is_user_id_valid($user_id)) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
Open
$user_ids[] = $user['user_id'];
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);
- Exclude checks
Variable "invalid_users" is not in valid camel caps format Open
Open
$invalid_users = [];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = UserManager::get_user_id_from_username($user_data['username']);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (CourseManager::is_user_subscribed_in_course($userId, $course_code, true, $session_id)) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = api_get_course_id();
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_id = $user_data['id'];
- Exclude checks
Variable "clean_users" is not in valid camel caps format Open
Open
foreach ($clean_users as $userId) {
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
$user_to_show[] = $invalid_user;
- Exclude checks
Variable "invalid_users" is not in valid camel caps format Open
Open
$invalid_users[] = $user_data;
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
Open
$user_ids[] = $user['user_id'];
- Exclude checks
Variable "invalid_users" is not in valid camel caps format Open
Open
foreach ($invalid_users as $invalid_user) {
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
if (!empty($user_to_show)) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data = array_change_key_case($user_data, CASE_LOWER);
- Exclude checks
Variable "unsubscribe_users" is not in valid camel caps format Open
Open
if ($unsubscribe_users) {
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
Open
CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (CourseManager::is_user_subscribed_in_course($userId, $course_code, true, $session_id)) {
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
$user_to_show[] = $userInfo['complete_name'];
- Exclude checks
Variable "empty_line_msg" is not in valid camel caps format Open
Open
echo Display::return_message($empty_line_msg, 'error');
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
foreach ($users as $user_data) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
if (isset($user_data['username']) && !empty($user_data['username'])) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$clean_users[] = $user_id;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
CourseManager::subscribeUser($userId, $courseId, $userType, $session_id);
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
foreach ($user_to_show as $user) {
- Exclude checks
Variable "unsubscribe_users" is not in valid camel caps format Open
Open
$unsubscribe_users = isset($_POST['unsubscribe_users']) ? true : false;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
if (isset($user_data['id']) && !empty($user_data['id'])) {
- Exclude checks
Variable "current_user_list" is not in valid camel caps format Open
Open
$current_user_list = CourseManager::get_user_list_from_course_code(
- Exclude checks
Variable "empty_line" is not in valid camel caps format Open
Open
$empty_line_msg = (0 == $empty_line) ? get_lang('Errors when importing file') : get_lang('Errors when importing file').': '.get_lang('There are empty lines in the header of selected file');
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$invalid_users[] = $user_data;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id,
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (CourseManager::is_user_subscribed_in_course($userId, $course_code)) {
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = get_lang('Import users list');
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_data = array_change_key_case($user_data, CASE_LOWER);
- Exclude checks
Variable "current_user_list" is not in valid camel caps format Open
Open
foreach ($current_user_list as $user) {
- Exclude checks
Variable "invalid_user" is not in valid camel caps format Open
Open
foreach ($invalid_users as $invalid_user) {
- Exclude checks
Variable "empty_line" is not in valid camel caps format Open
Open
$empty_line = 0;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$form->addElement('header', $tool_name);
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
$user_to_show = [];
- Exclude checks
Variable "clean_users" is not in valid camel caps format Open
Open
$clean_users[] = $user_id;
- Exclude checks
Variable "user_to_show" is not in valid camel caps format Open
Open
$user_to_show[] = $userInfo['complete_name'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = api_get_session_id();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = null;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
$user_id = UserManager::get_user_id_from_username($user_data['username']);
- Exclude checks
Variable "current_user_list" is not in valid camel caps format Open
Open
if (!empty($current_user_list)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
if (isset($user_data['username']) && !empty($user_data['username'])) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
Open
if (isset($user_data['id']) && !empty($user_data['id'])) {
- Exclude checks
Variable "user_ids" is not in valid camel caps format Open
Open
$user_ids = [];
- Exclude checks
Variable "invalid_user" is not in valid camel caps format Open
Open
$user_to_show[] = $invalid_user;
- Exclude checks
Variable "empty_line_msg" is not in valid camel caps format Open
Open
$empty_line_msg = (0 == $empty_line) ? get_lang('Errors when importing file') : get_lang('Errors when importing file').': '.get_lang('There are empty lines in the header of selected file');
- Exclude checks