ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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 924 of file class.ilTestServiceGUI.php.

925{
926 $sort = ($_GET["sort"]) ? ($_GET["sort"]) : "nr";
927 $sortorder = ($_GET["sortorder"]) ? ($_GET["sortorder"]) : "asc";
928 if (strcmp($sortorder, "asc"))
929 {
930 $smaller = 1;
931 $greater = -1;
932 }
933 else
934 {
935 $smaller = -1;
936 $greater = 1;
937 }
938 if ($a[$sort] == $b[$sort]) return 0;
939 return ($a[$sort] < $b[$sort]) ? $smaller : $greater;
940}
$_GET["client_id"]

References $_GET.