|
| $allattemptsavg |
|
| $allattemptscount = 0 |
|
| $cic |
|
| $errorratio |
|
| $firstattemptsavg |
|
| $firstattemptscount = 0 |
|
| $highestattemptsavg |
|
| $highestattemptscount = 0 |
|
| $kurtosis |
|
| $lastattemptsavg |
|
| $lastattemptscount = 0 |
|
| $median |
|
| $skewness |
|
| $standarddeviation |
|
| $standarderror |
|
int | $timemodified |
| time these stats where calculated and cached.
|
|
int | $whichattempts |
| which attempts we are calculating calculate stats from.
|
|
|
| get_field ($field) |
| Get the right field name to fetch a stat for these attempts that is calculated for more than one $whichattempts (count or avg).
|
|
|
array | $fieldsindb |
| of names of properties of this class that are cached in db record.
|
|
◆ __construct()
quiz_statistics\calculated::__construct |
( |
| $whichattempts = null | ) |
|
- Parameters
-
string | $whichattempts | which attempts to use, represented internally as one of the constants as used in $quiz->grademethod ie. QUIZ_GRADEAVERAGE, QUIZ_GRADEHIGHEST, QUIZ_ATTEMPTLAST or QUIZ_ATTEMPTFIRST we calculate stats based on which attempts would affect the grade for each student, the default null value is used when constructing an instance whose values will be populated from a db record. |
◆ avg()
quiz_statistics\calculated::avg |
( |
| ) |
|
Average grade for the attempts selected by $this->whichattempts.
- Return values
-
◆ cache()
quiz_statistics\calculated::cache |
( |
| $qubaids | ) |
|
Cache the stats contained in this class.
- Parameters
-
◆ get_field()
quiz_statistics\calculated::get_field |
( |
| $field | ) |
|
|
protected |
Get the right field name to fetch a stat for these attempts that is calculated for more than one $whichattempts (count or avg).
- Parameters
-
string | $field | name of field |
- Return values
-
◆ get_formatted_quiz_info_data()
quiz_statistics\calculated::get_formatted_quiz_info_data |
( |
| $course, |
|
|
| $cm, |
|
|
| $quiz ) |
- Parameters
-
- Return values
-
array | to display in table or spreadsheet. |
◆ populate_from_record()
quiz_statistics\calculated::populate_from_record |
( |
| $record | ) |
|
Given a record from 'quiz_statistics' table load the data into the properties of this class.
- Parameters
-
◆ s()
quiz_statistics\calculated::s |
( |
| ) |
|
Count of attempts selected by $this->whichattempts.
- Return values
-
◆ $fieldsindb
array quiz_statistics\calculated::$fieldsindb |
|
protected |
Initial value:= ['whichattempts', 'firstattemptscount', 'allattemptscount', 'firstattemptsavg', 'allattemptsavg',
'lastattemptscount', 'highestattemptscount', 'lastattemptsavg', 'highestattemptsavg',
'median', 'standarddeviation', 'skewness',
'kurtosis', 'cic', 'errorratio', 'standarderror']
of names of properties of this class that are cached in db record.
The documentation for this class was generated from the following file:
- mod/quiz/report/statistics/classes/calculated.php