Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
00025 include_once "./classes/class.ilStatistics.php";
00026
00036 class ilTestStatistics
00037 {
00038 var $test_id;
00039 var $statistics;
00040
00049 function ilTestStatistics($eval_data)
00050 {
00051 $this->statistics = NULL;
00052 $this->calculateStatistics($eval_data);
00053 }
00054
00064 function getStatistics()
00065 {
00066 return $this->statistics;
00067 }
00068
00077 function calculateStatistics($eval_data)
00078 {
00079 $median_array = array();
00080
00081 foreach ($eval_data->getParticipantIds() as $active_id)
00082 {
00083 $participant =& $eval_data->getParticipant($active_id);
00084 array_push($median_array, $participant->getReached());
00085 }
00086
00087 $this->statistics = new ilStatistics();
00088 $this->statistics->setData($median_array);
00089 }
00090 }
00091
00092 ?>