@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | $connection = Database::getManager()->getConnection(); |
731 | 731 | $tableExists = $connection->getSchemaManager()->tablesExist(['plugin_bbb_room']); |
732 | 732 | if ($tableExists) { |
733 | - // Delete user from database |
|
733 | + // Delete user from database |
|
734 | 734 | $sql = "DELETE FROM plugin_bbb_room WHERE participant_id = $user_id"; |
735 | 735 | Database::query($sql); |
736 | 736 | } |
@@ -1375,13 +1375,13 @@ discard block |
||
1375 | 1375 | } |
1376 | 1376 | |
1377 | 1377 | /** |
1378 | - * Get the users by ID |
|
1379 | - * @param array $ids student ids |
|
1380 | - * @param string $active |
|
1381 | - * @param string $order |
|
1382 | - * @param string $limit |
|
1383 | - * @return array $result student information |
|
1384 | - */ |
|
1378 | + * Get the users by ID |
|
1379 | + * @param array $ids student ids |
|
1380 | + * @param string $active |
|
1381 | + * @param string $order |
|
1382 | + * @param string $limit |
|
1383 | + * @return array $result student information |
|
1384 | + */ |
|
1385 | 1385 | public static function get_user_list_by_ids($ids = array(), $active = null, $order = null, $limit = null) |
1386 | 1386 | { |
1387 | 1387 | if (empty($ids)) { |
@@ -2546,7 +2546,7 @@ discard block |
||
2546 | 2546 | * |
2547 | 2547 | * @return array with extra data info of a user i.e array('field_variable'=>'value'); |
2548 | 2548 | */ |
2549 | - public static function get_extra_user_data_by_value($variable, $value, $all_visibility = true) |
|
2549 | + public static function get_extra_user_data_by_value($variable, $value, $all_visibility = true) |
|
2550 | 2550 | { |
2551 | 2551 | $extraFieldValue = new ExtraFieldValue('user'); |
2552 | 2552 | $extraField = new ExtraField('user'); |
@@ -3706,12 +3706,12 @@ discard block |
||
3706 | 3706 | if ($tag_id == 0) { |
3707 | 3707 | //the tag doesn't exist |
3708 | 3708 | $sql = "INSERT INTO $table_user_tag (tag, field_id,count) VALUES ('$tag','$field_id', count + 1)"; |
3709 | - Database::query($sql); |
|
3709 | + Database::query($sql); |
|
3710 | 3710 | $last_insert_id = Database::insert_id(); |
3711 | 3711 | } else { |
3712 | 3712 | //the tag exists we update it |
3713 | 3713 | $sql = "UPDATE $table_user_tag SET count = count + 1 WHERE id = $tag_id"; |
3714 | - Database::query($sql); |
|
3714 | + Database::query($sql); |
|
3715 | 3715 | $last_insert_id = $tag_id; |
3716 | 3716 | } |
3717 | 3717 | |
@@ -3906,9 +3906,9 @@ discard block |
||
3906 | 3906 | } |
3907 | 3907 | |
3908 | 3908 | /** |
3909 | - * Get extra filtrable user fields (only type select) |
|
3910 | - * @return array |
|
3911 | - */ |
|
3909 | + * Get extra filtrable user fields (only type select) |
|
3910 | + * @return array |
|
3911 | + */ |
|
3912 | 3912 | public static function get_extra_filtrable_fields() |
3913 | 3913 | { |
3914 | 3914 | $extraFieldList = self::get_extra_fields(); |
@@ -3933,9 +3933,9 @@ discard block |
||
3933 | 3933 | } |
3934 | 3934 | |
3935 | 3935 | /** |
3936 | - * Get extra where clauses for finding users based on extra filtrable user fields (type select) |
|
3937 | - * @return string With AND clauses based on user's ID which have the values to search in extra user fields |
|
3938 | - */ |
|
3936 | + * Get extra where clauses for finding users based on extra filtrable user fields (type select) |
|
3937 | + * @return string With AND clauses based on user's ID which have the values to search in extra user fields |
|
3938 | + */ |
|
3939 | 3939 | public static function get_search_form_where_extra_fields() |
3940 | 3940 | { |
3941 | 3941 | $useExtraFields = false; |
@@ -4256,23 +4256,23 @@ discard block |
||
4256 | 4256 | } |
4257 | 4257 | |
4258 | 4258 | /** |
4259 | - * Get users followed by human resource manager |
|
4260 | - * @param int $userId |
|
4261 | - * @param int $userStatus Filter users by status (STUDENT, COURSEMANAGER, etc) |
|
4262 | - * @param bool $getOnlyUserId |
|
4263 | - * @param bool $getSql |
|
4264 | - * @param bool $getCount |
|
4265 | - * @param int $from |
|
4266 | - * @param int $numberItems |
|
4267 | - * @param int $column |
|
4268 | - * @param string $direction |
|
4269 | - * @param int $active |
|
4270 | - * @param string $lastConnectionDate |
|
4271 | - * @param int $status the function is called by who? COURSEMANAGER, DRH? |
|
4272 | - * @param string $keyword |
|
4259 | + * Get users followed by human resource manager |
|
4260 | + * @param int $userId |
|
4261 | + * @param int $userStatus Filter users by status (STUDENT, COURSEMANAGER, etc) |
|
4262 | + * @param bool $getOnlyUserId |
|
4263 | + * @param bool $getSql |
|
4264 | + * @param bool $getCount |
|
4265 | + * @param int $from |
|
4266 | + * @param int $numberItems |
|
4267 | + * @param int $column |
|
4268 | + * @param string $direction |
|
4269 | + * @param int $active |
|
4270 | + * @param string $lastConnectionDate |
|
4271 | + * @param int $status the function is called by who? COURSEMANAGER, DRH? |
|
4272 | + * @param string $keyword |
|
4273 | 4273 | * |
4274 | - * @return array user list |
|
4275 | - */ |
|
4274 | + * @return array user list |
|
4275 | + */ |
|
4276 | 4276 | public static function getUsersFollowedByUser( |
4277 | 4277 | $userId, |
4278 | 4278 | $userStatus = null, |
@@ -5309,7 +5309,7 @@ discard block |
||
5309 | 5309 | * @return array |
5310 | 5310 | * @author Evie Embrechts |
5311 | 5311 | * @author Yannick Warnier <[email protected]> |
5312 | - */ |
|
5312 | + */ |
|
5313 | 5313 | public static function loginAsUser($userId, $checkIfUserCanLoginAs = true) |
5314 | 5314 | { |
5315 | 5315 | $userId = intval($userId); |
@@ -1971,8 +1971,8 @@ |
||
1971 | 1971 | if (!empty($proxySettings) && |
1972 | 1972 | isset($proxySettings['curl_setopt_array']) |
1973 | 1973 | ) { |
1974 | - $defaults[CURLOPT_PROXY] = $proxySettings['curl_setopt_array']['CURLOPT_PROXY']; |
|
1975 | - $defaults[CURLOPT_PROXYPORT] = $proxySettings['curl_setopt_array']['CURLOPT_PROXYPORT']; |
|
1974 | + $defaults[CURLOPT_PROXY] = $proxySettings['curl_setopt_array']['CURLOPT_PROXY']; |
|
1975 | + $defaults[CURLOPT_PROXYPORT] = $proxySettings['curl_setopt_array']['CURLOPT_PROXYPORT']; |
|
1976 | 1976 | } |
1977 | 1977 | |
1978 | 1978 | // Create a new cURL resource |
@@ -16,15 +16,15 @@ |
||
16 | 16 | class TableSort |
17 | 17 | { |
18 | 18 | /** |
19 | - * Sorts 2-dimensional table. |
|
20 | - * @param array $data The data to be sorted. |
|
21 | - * @param int $column The column on which the data should be sorted (default = 0) |
|
22 | - * @param int $direction The direction to sort (SORT_ASC (default) or SORT_DESC) |
|
23 | - * @param int $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, |
|
24 | - * SORT_STRING,SORT_DATE,SORT_IMAGE) |
|
25 | - * @return array The sorted dataset |
|
26 | - * @author [email protected] |
|
27 | - */ |
|
19 | + * Sorts 2-dimensional table. |
|
20 | + * @param array $data The data to be sorted. |
|
21 | + * @param int $column The column on which the data should be sorted (default = 0) |
|
22 | + * @param int $direction The direction to sort (SORT_ASC (default) or SORT_DESC) |
|
23 | + * @param int $type How should data be sorted (SORT_REGULAR, SORT_NUMERIC, |
|
24 | + * SORT_STRING,SORT_DATE,SORT_IMAGE) |
|
25 | + * @return array The sorted dataset |
|
26 | + * @author [email protected] |
|
27 | + */ |
|
28 | 28 | public static function sort_table( |
29 | 29 | $data, |
30 | 30 | $column = 0, |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | ); |
51 | 51 | } |
52 | 52 | |
53 | - /** |
|
54 | - * Displays the page header |
|
55 | - * @param string The name of the page (will be showed in the page title) |
|
56 | - * @param string Optional help file name |
|
57 | - * @param string $page_header |
|
58 | - */ |
|
53 | + /** |
|
54 | + * Displays the page header |
|
55 | + * @param string The name of the page (will be showed in the page title) |
|
56 | + * @param string Optional help file name |
|
57 | + * @param string $page_header |
|
58 | + */ |
|
59 | 59 | public static function display_header( |
60 | 60 | $tool_name = '', |
61 | 61 | $help = null, |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | * @param array additional attributes (for instance height, width, onclick, ...) |
727 | 727 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
728 | 728 | * @return void |
729 | - */ |
|
729 | + */ |
|
730 | 730 | public static function display_icon( |
731 | 731 | $image, |
732 | 732 | $alt_text = '', |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | * @author Julio Montoya 2010 Function improved, adding image constants |
763 | 763 | * @author Yannick Warnier 2011 Added size handler |
764 | 764 | * @version Feb 2011 |
765 | - */ |
|
765 | + */ |
|
766 | 766 | public static function return_icon( |
767 | 767 | $image, |
768 | 768 | $alt_text = '', |
@@ -1073,7 +1073,7 @@ discard block |
||
1073 | 1073 | * in the $htmlHeadXtra variable before the display_header |
1074 | 1074 | * Add this script |
1075 | 1075 | * @example |
1076 | - * <script> |
|
1076 | + * <script> |
|
1077 | 1077 | $(function() { |
1078 | 1078 | $( "#tabs" ).tabs(); |
1079 | 1079 | }); |
@@ -1780,8 +1780,8 @@ discard block |
||
1780 | 1780 | return self::page_header($title, $second_title); |
1781 | 1781 | } |
1782 | 1782 | |
1783 | - public static function page_subheader_and_translate($title, $second_title = null) |
|
1784 | - { |
|
1783 | + public static function page_subheader_and_translate($title, $second_title = null) |
|
1784 | + { |
|
1785 | 1785 | $title = get_lang($title); |
1786 | 1786 | return self::page_subheader($title, $second_title); |
1787 | 1787 | } |
@@ -2593,7 +2593,7 @@ discard block |
||
2593 | 2593 | */ |
2594 | 2594 | public static function dateToStringAgoAndLongDate($dateTime) |
2595 | 2595 | { |
2596 | - if (empty($dateTime) || $dateTime === '0000-00-00 00:00:00') { |
|
2596 | + if (empty($dateTime) || $dateTime === '0000-00-00 00:00:00') { |
|
2597 | 2597 | return ''; |
2598 | 2598 | } |
2599 | 2599 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $currencyForm->addTextarea( |
80 | 80 | 'terms_and_conditions', |
81 | 81 | [get_lang('TermsAndConditions'), |
82 | - $plugin->get_lang('WriteHereTheTermsAndConditionsOfYourECommerce')], |
|
82 | + $plugin->get_lang('WriteHereTheTermsAndConditionsOfYourECommerce')], |
|
83 | 83 | [] |
84 | 84 | ); |
85 | 85 | $currencyForm->addButtonSave(get_lang('Save')); |
@@ -295,8 +295,8 @@ |
||
295 | 295 | } |
296 | 296 | } |
297 | 297 | |
298 | - //This query will show all registered users. Only for dev purposes. |
|
299 | - /*$query = "SELECT DISTINCT u.id as login_user_id, login_date |
|
298 | + //This query will show all registered users. Only for dev purposes. |
|
299 | + /*$query = "SELECT DISTINCT u.id as login_user_id, login_date |
|
300 | 300 | FROM $track_online_table e, $table_user u |
301 | 301 | GROUP by u.id |
302 | 302 | ORDER BY $column $direction |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | true |
582 | 582 | ); |
583 | 583 | } |
584 | - $url = api_get_path(WEB_CODE_PATH)."session/resume_session.php?id_session=".$session['id']; |
|
584 | + $url = api_get_path(WEB_CODE_PATH)."session/resume_session.php?id_session=".$session['id']; |
|
585 | 585 | if (api_is_drh()) { |
586 | 586 | $url = api_get_path(WEB_CODE_PATH)."session/about.php?session_id=".$session['id']; |
587 | 587 | } |
@@ -2063,16 +2063,16 @@ discard block |
||
2063 | 2063 | return $existingUsers; |
2064 | 2064 | } |
2065 | 2065 | |
2066 | - /** |
|
2067 | - * Returns user list of the current users subscribed in the course-session |
|
2068 | - * @param array $sessionList |
|
2069 | - * @param array $courseList |
|
2070 | - * @param int $status |
|
2071 | - * @param int $start |
|
2072 | - * @param int $limit |
|
2073 | - * |
|
2074 | - * @return array |
|
2075 | - */ |
|
2066 | + /** |
|
2067 | + * Returns user list of the current users subscribed in the course-session |
|
2068 | + * @param array $sessionList |
|
2069 | + * @param array $courseList |
|
2070 | + * @param int $status |
|
2071 | + * @param int $start |
|
2072 | + * @param int $limit |
|
2073 | + * |
|
2074 | + * @return array |
|
2075 | + */ |
|
2076 | 2076 | public static function getUsersByCourseAndSessionList( |
2077 | 2077 | $sessionList, |
2078 | 2078 | $courseList, |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | get_lang('HideColumn'), |
115 | 115 | array('align' => 'absmiddle', 'hspace' => '3px'), |
116 | 116 | ICON_SIZE_SMALL |
117 | - )."</div>' |
|
117 | + )."</div>' |
|
118 | 118 | ); |
119 | 119 | } |
120 | 120 | ); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | } |
200 | 200 | |
201 | 201 | foreach ($_GET['additional_profile_field'] as $fieldId) { |
202 | - // Fetching only the user that are loaded NOT ALL user in the portal. |
|
202 | + // Fetching only the user that are loaded NOT ALL user in the portal. |
|
203 | 203 | $userProfileInfo[$fieldId] = TrackingCourseLog::getAdditionalProfileInformationOfFieldByUser( |
204 | 204 | $fieldId, |
205 | 205 | $user_array |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | } |
576 | 576 | ob_end_clean(); |
577 | 577 | |
578 | - // Adding headers before the content. |
|
578 | + // Adding headers before the content. |
|
579 | 579 | array_unshift($csv_content, $csv_headers); |
580 | 580 | |
581 | 581 | if ($session_id) { |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * Set user chat status |
|
52 | - * @param int 0 if disconnected, 1 if connected |
|
53 | - * @param integer $status |
|
51 | + * Set user chat status |
|
52 | + * @param int 0 if disconnected, 1 if connected |
|
53 | + * @param integer $status |
|
54 | 54 | * |
55 | - * @return void |
|
56 | - */ |
|
55 | + * @return void |
|
56 | + */ |
|
57 | 57 | public function setUserStatus($status) |
58 | 58 | { |
59 | 59 | UserManager::update_extra_field_value( |
@@ -324,10 +324,10 @@ discard block |
||
324 | 324 | } |
325 | 325 | |
326 | 326 | /** |
327 | - * Returns an array of messages inside a chat session with a specific user |
|
328 | - * @param int The ID of the user with whom the current user is chatting |
|
329 | - * @return array Messages list |
|
330 | - */ |
|
327 | + * Returns an array of messages inside a chat session with a specific user |
|
328 | + * @param int The ID of the user with whom the current user is chatting |
|
329 | + * @return array Messages list |
|
330 | + */ |
|
331 | 331 | public function box_session($user_id) |
332 | 332 | { |
333 | 333 | $items = array(); |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | } |
477 | 477 | } |
478 | 478 | |
479 | - return false; |
|
479 | + return false; |
|
480 | 480 | } |
481 | 481 | |
482 | 482 | /** |