ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestStatistics Class Reference

This class calculates statistical data for a test which has to be calculated using all participant datasets (like the median). More...

+ Collaboration diagram for ilTestStatistics:

Public Member Functions

 ilTestStatistics ($eval_data)
 ilTestStatistics constructor
 getStatistics ()
 Returns the statistics object.
 calculateStatistics ($eval_data)
 Instanciates the statistics object.

Data Fields

 $test_id
 $statistics

Detailed Description

This class calculates statistical data for a test which has to be calculated using all participant datasets (like the median).

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
$Id$

Definition at line 36 of file class.ilTestStatistics.php.

Member Function Documentation

ilTestStatistics::calculateStatistics (   $eval_data)

Instanciates the statistics object.

private

See Also
$statistics

Definition at line 73 of file class.ilTestStatistics.php.

Referenced by ilTestStatistics().

{
$median_array = array();
foreach ($eval_data->getParticipantIds() as $active_id)
{
$participant =& $eval_data->getParticipant($active_id);
array_push($median_array, $participant->getReached());
}
$this->statistics = new ilStatistics();
$this->statistics->setData($median_array);
}

+ Here is the caller graph for this function:

ilTestStatistics::getStatistics ( )

Returns the statistics object.

Returns
object ilStatistics object public
See Also
$statistics

Definition at line 62 of file class.ilTestStatistics.php.

References $statistics.

{
}
ilTestStatistics::ilTestStatistics (   $eval_data)

ilTestStatistics constructor

The constructor takes the id of an existing test object

Parameters
integer$eval_dataComplete test data as ilTestEvaluationData object public

Definition at line 49 of file class.ilTestStatistics.php.

References calculateStatistics().

{
$this->statistics = NULL;
$this->calculateStatistics($eval_data);
}

+ Here is the call graph for this function:

Field Documentation

ilTestStatistics::$statistics

Definition at line 39 of file class.ilTestStatistics.php.

Referenced by getStatistics().

ilTestStatistics::$test_id

Definition at line 38 of file class.ilTestStatistics.php.


The documentation for this class was generated from the following file: