@@ -1039,15 +1039,15 @@ function getWhereClause($col, $oper, $val)
10391039
10401040switch ($ action ) {
10411041 case 'get_exercise_categories ' :
1042- $ columns = ['name ' , 'actions ' ];
1042+ $ columns = ['title ' , 'actions ' ];
10431043 $ qb = $ repo ->getResourcesByCourse (api_get_course_entity ($ courseId ));
10441044 $ items = $ qb ->getQuery ()->getResult ();
10451045 /** @var CQuizCategory $item */
10461046 $ result = [];
10471047 foreach ($ items as $ item ) {
10481048 $ result [] = [
10491049 'id ' => $ item ->getId (),
1050- 'name ' => $ item ->getTitle (),
1050+ 'title ' => $ item ->getTitle (),
10511051 ];
10521052 }
10531053 break ;
@@ -1115,8 +1115,8 @@ function getWhereClause($col, $oper, $val)
11151115 }
11161116 break ;
11171117 case 'get_group_reporting ' :
1118- $ columns = ['name ' , 'time ' , 'progress ' , 'score ' , 'works ' , 'messages ' , 'actions ' ];
1119- $ sidx = in_array ($ sidx , $ columns ) ? $ sidx : 'name ' ;
1118+ $ columns = ['title ' , 'time ' , 'progress ' , 'score ' , 'works ' , 'messages ' , 'actions ' ];
1119+ $ sidx = in_array ($ sidx , $ columns ) ? $ sidx : 'title ' ;
11201120
11211121 $ result = Tracking::get_group_reporting (
11221122 $ course_id ,
@@ -1310,7 +1310,7 @@ function getWhereClause($col, $oper, $val)
13101310 $ userGroup = new UserGroupModel ();
13111311 foreach ($ result as &$ item ) {
13121312 $ userGroups = $ userGroup ->get_groups_by_user ($ item ['user_id ' ]);
1313- $ item ['group ' ] = implode (", " , array_column ($ userGroups , 'name ' ));
1313+ $ item ['group ' ] = implode (", " , array_column ($ userGroups , 'title ' ));
13141314 unset($ item ['user_id ' ]);
13151315 }
13161316 }
@@ -1912,7 +1912,7 @@ function getWhereClause($col, $oper, $val)
19121912 );
19131913
19141914 $ item = [
1915- 'name ' => Display::url (
1915+ 'title ' => Display::url (
19161916 $ session ['title ' ],
19171917 api_get_path (WEB_CODE_PATH ).'my_space/course.php?sid= ' .$ session ['id ' ]
19181918 ),
@@ -2232,9 +2232,9 @@ function getWhereClause($col, $oper, $val)
22322232 );
22332233 break ;
22342234 case 'get_gradebooks ' :
2235- $ columns = ['name ' , 'certificates ' , 'skills ' , 'actions ' , 'has_certificates ' ];
2235+ $ columns = ['title ' , 'certificates ' , 'skills ' , 'actions ' , 'has_certificates ' ];
22362236 if (!in_array ($ sidx , $ columns )) {
2237- $ sidx = 'name ' ;
2237+ $ sidx = 'title ' ;
22382238 }
22392239 $ result = Database::select (
22402240 '* ' ,
@@ -2251,12 +2251,12 @@ function getWhereClause($col, $oper, $val)
22512251 $ courseInfo = api_get_course_info_by_id ($ courseId );
22522252
22532253 //Fixes bug when gradebook doesn't have names
2254- if (empty ($ item ['name ' ])) {
2255- $ item ['name ' ] = $ courseInfo ['code ' ];
2254+ if (empty ($ item ['title ' ])) {
2255+ $ item ['title ' ] = $ courseInfo ['code ' ];
22562256 }
22572257
2258- $ item ['name ' ] = Display::url (
2259- $ item ['name ' ],
2258+ $ item ['title ' ] = Display::url (
2259+ $ item ['title ' ],
22602260 api_get_path (WEB_CODE_PATH ).'gradebook/index.php?sid=0&cid= ' .$ courseInfo ['real_id ' ]
22612261 );
22622262
@@ -2283,7 +2283,7 @@ function getWhereClause($col, $oper, $val)
22832283 if (!empty ($ skills )) {
22842284 $ item ['skills ' ] = '' ;
22852285 foreach ($ skills as $ skill ) {
2286- $ item ['skills ' ] .= Display::span ($ skill ['name ' ], ['class ' => 'label_tag skill ' ]);
2286+ $ item ['skills ' ] .= Display::span ($ skill ['title ' ], ['class ' => 'label_tag skill ' ]);
22872287 }
22882288 }
22892289 $ new_result [] = $ item ;
@@ -2357,9 +2357,9 @@ function getWhereClause($col, $oper, $val)
23572357 $ result = $ new_result ;
23582358 break ;
23592359 case 'get_grade_models ' :
2360- $ columns = ['name ' , 'description ' , 'actions ' ];
2360+ $ columns = ['title ' , 'description ' , 'actions ' ];
23612361 if (!in_array ($ sidx , $ columns )) {
2362- $ sidx = 'name ' ;
2362+ $ sidx = 'title ' ;
23632363 }
23642364 $ result = Database::select (
23652365 '* ' ,
@@ -2451,8 +2451,8 @@ function getWhereClause($col, $oper, $val)
24512451 $ column_names [] = get_lang ('Username ' );
24522452 break ;
24532453 case 3 :
2454- $ columns [] = 'name ' ;
2455- $ column_names [] = get_lang ('Name ' );
2454+ $ columns [] = 'title ' ;
2455+ $ column_names [] = get_lang ('Title ' );
24562456 break ;
24572457 case $ cntExer :
24582458 $ columns [] = 'finalScore ' ;
@@ -2506,7 +2506,7 @@ function getWhereClause($col, $oper, $val)
25062506 $ i = 0 ;
25072507 foreach ($ users as $ user ) {
25082508 $ sessionInfo = SessionManager::fetch ($ listUserSess [$ user ['user_id ' ]]['id_session ' ]);
2509- $ result [$ i ]['session ' ] = $ sessionInfo ['name ' ];
2509+ $ result [$ i ]['session ' ] = $ sessionInfo ['title ' ];
25102510 $ result [$ i ]['username ' ] = $ user ['username ' ];
25112511 $ result [$ i ]['name ' ] = $ user ['lastname ' ]." " .$ user ['firstname ' ];
25122512 $ j = 1 ;
@@ -2622,7 +2622,7 @@ function getWhereClause($col, $oper, $val)
26222622 }
26232623
26242624 if (!in_array ($ sidx , $ columns )) {
2625- $ sidx = 'name ' ;
2625+ $ sidx = 'title ' ;
26262626 }
26272627 // Multidimensional sort
26282628 $ result = msort ($ result , $ sidx , $ sord );
0 commit comments