@@ -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 | /** |
@@ -351,12 +351,12 @@ discard block |
||
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
354 | - * update user info about certificate |
|
355 | - * @param int $cat_id category id |
|
356 | - * @param int $user_id user id |
|
357 | - * @param string $path_certificate the path name of the certificate |
|
358 | - * @return void |
|
359 | - */ |
|
354 | + * update user info about certificate |
|
355 | + * @param int $cat_id category id |
|
356 | + * @param int $user_id user id |
|
357 | + * @param string $path_certificate the path name of the certificate |
|
358 | + * @return void |
|
359 | + */ |
|
360 | 360 | public function updateUserCertificateInfo( |
361 | 361 | $cat_id, |
362 | 362 | $user_id, |
@@ -518,8 +518,8 @@ discard block |
||
518 | 518 | } |
519 | 519 | |
520 | 520 | /** |
521 | - * Shows the student's certificate (HTML file) |
|
522 | - */ |
|
521 | + * Shows the student's certificate (HTML file) |
|
522 | + */ |
|
523 | 523 | public function show() |
524 | 524 | { |
525 | 525 | header('Content-Type: text/html; charset='.api_get_system_encoding()); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); |
38 | 38 | } |
39 | 39 | } else { |
40 | - //Checker exists centers |
|
40 | + //Checker exists centers |
|
41 | 41 | $sql = "SELECT * FROM $tableCenters |
42 | 42 | WHERE center_origin='".$centerOrigin."' AND center_code='".$centerCode."'"; |
43 | 43 | $rs_tmp = Database::query($sql); |