ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 1241 of file class.ilTestServiceGUI.php.

1242{
1243 $sort = ($_GET["sort"]) ? ($_GET["sort"]) : "nr";
1244 $sortorder = ($_GET["sortorder"]) ? ($_GET["sortorder"]) : "asc";
1245 if (strcmp($sortorder, "asc"))
1246 {
1247 $smaller = 1;
1248 $greater = -1;
1249 }
1250 else
1251 {
1252 $smaller = -1;
1253 $greater = 1;
1254 }
1255 if ($a[$sort] == $b[$sort]) return 0;
1256 return ($a[$sort] < $b[$sort]) ? $smaller : $greater;
1257}
$_GET["client_id"]

References $_GET.