ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTestServiceGUI.php File Reference

Go to the source code of this file.

Data Structures

class  ilTestServiceGUI
 Service GUI class for tests. More...
 

Functions

 sortResults ($a, $b)
 

Function Documentation

◆ sortResults()

sortResults (   $a,
  $b 
)

Definition at line 1234 of file class.ilTestServiceGUI.php.

1235{
1236 $sort = ($_GET["sort"]) ? ($_GET["sort"]) : "nr";
1237 $sortorder = ($_GET["sortorder"]) ? ($_GET["sortorder"]) : "asc";
1238 if (strcmp($sortorder, "asc")) {
1239 $smaller = 1;
1240 $greater = -1;
1241 } else {
1242 $smaller = -1;
1243 $greater = 1;
1244 }
1245 if ($a[$sort] == $b[$sort]) {
1246 return 0;
1247 }
1248 return ($a[$sort] < $b[$sort]) ? $smaller : $greater;
1249}
$_GET["client_id"]

References $_GET.