|
ILIAS
eassessment Revision 61809
|
Export class for tests. More...
Collaboration diagram for ilTestExport:Public Member Functions | |
| ilTestExport (&$a_test_obj, $a_mode="xml") | |
| Constructor public. | |
| getExtension () | |
| getInstId () | |
| buildExportFile () | |
| build export file (complete zip file) | |
| buildExportResultFile () | |
| build CSV/Excel export files | |
| compareQuestionsByOID ($a, $b) | |
| Compares two questions by their original ID. | |
| exportToExcel ($deliver=TRUE, $filterby="", $filtertext="", $passedonly=FALSE) | |
| Exports the evaluation data to the Microsoft Excel file format. | |
| exportToCSV ($deliver=TRUE, $filterby="", $filtertext="", $passedonly=FALSE) | |
| Exports the evaluation data to the CSV file format. | |
| exportToImsCSV ($deliver=TRUE, $filterby="", $filtertext="", $passedonly=FALSE) | |
| Exports the evaluation data to the IMSm CSV file format. | |
| buildExportFileXML () | |
| build xml export file | |
| exportXHTMLMediaObjects ($a_export_dir) | |
| singleChoiceExport ($adapter=null, $deliver=true, $filterby="", $filtertext="", $passedonly=FALSE) | |
Data Fields | |
| $err | |
| $db | |
| $ilias | |
| $test_obj | |
| $inst_id | |
| $mode | |
Protected Member Functions | |
| aggregatedResultsToExcel ($deliver=TRUE) | |
| Exports the aggregated results to the Microsoft Excel file format. | |
| aggregatedResultsToCSV ($deliver=TRUE) | |
| Exports the aggregated results to CSV. | |
Private Member Functions | |
| writeQuestionUsageTimes ($adapter) | |
Private Attributes | |
| $lng | |
| $resultsfile | |
Export class for tests.
Definition at line 34 of file class.ilTestExport.php.
|
protected |
Exports the aggregated results to CSV.
| boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 221 of file class.ilTestExport.php.
References $data, $separator, ilUtil\deliverData(), exit, and ilUtil\getASCIIFilename().
Referenced by exportToCSV().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Exports the aggregated results to the Microsoft Excel file format.
| boolean | $deliver | TRUE to directly deliver the file, FALSE to return the binary data |
Definition at line 165 of file class.ilTestExport.php.
References $data, $row, CELL_FORMAT_PERCENT, CELL_FORMAT_TITLE, ilExcelUtils\ExcelAdapter(), exit, and ilUtil\getASCIIFilename().
Referenced by exportToExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::buildExportFile | ( | ) |
build export file (complete zip file)
public
Definition at line 110 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
Here is the call graph for this function:| ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 1250 of file class.ilTestExport.php.
References $ilBench, exportXHTMLMediaObjects(), ilUtil\makeDir(), ilTestResultsToXML\xmlDumpFile(), ilXmlWriter\xmlSetDtdDef(), and ilUtil\zip().
Referenced by buildExportFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::buildExportResultFile | ( | ) |
build CSV/Excel export files
Definition at line 126 of file class.ilTestExport.php.
References $data, $file, $filename, $ilBench, $log, ilExcelUtils\ExcelAdapter(), exportToCSV(), exportToExcel(), getExtension(), and ilUtil\makeDir().
Referenced by buildExportFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::compareQuestionsByOID | ( | $a, | |
| $b | |||
| ) |
Compares two questions by their original ID.
Compares two questions by their original ID (to be used by usort())
| array | $a | Left side of comparison |
| array | $b | Right side of comparison public |
Definition at line 280 of file class.ilTestExport.php.
| ilTestExport::exportToCSV | ( | $deliver = TRUE, |
|
$filterby = "", |
|||
$filtertext = "", |
|||
$passedonly = FALSE |
|||
| ) |
Exports the evaluation data to the CSV file format.
Exports the evaluation data to the CSV file format
| string | $filtertext | Filter text for the user data |
| boolean | $passedonly | TRUE if only passed user datasets should be exported, FALSE otherwise public |
Definition at line 878 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $separator, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), ilUtil\deliverData(), ilUtil\excelTime(), exit, ilUtil\getASCIIFilename(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::exportToExcel | ( | $deliver = TRUE, |
|
$filterby = "", |
|||
$filtertext = "", |
|||
$passedonly = FALSE |
|||
| ) |
Exports the evaluation data to the Microsoft Excel file format.
| string | $filtertext | Filter text for the user data |
| boolean | $passedonly | TRUE if only passed user datasets should be exported, FALSE otherwise public |
Definition at line 295 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $pos, $row, $title, ilExcelUtils\_convert_text(), assSingleChoice\_getAnswerTexts(), assQuestion\_getSolutionValues(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), CELL_FORMAT_BOLD, CELL_FORMAT_DATETIME, CELL_FORMAT_PERCENT, CELL_FORMAT_TITLE, ilExcelUtils\ExcelAdapter(), ilUtil\excelTime(), exit, ilUtil\getASCIIFilename(), SCORE_BEST_PASS, and writeQuestionUsageTimes().
Referenced by buildExportResultFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::exportToImsCSV | ( | $deliver = TRUE, |
|
$filterby = "", |
|||
$filtertext = "", |
|||
$passedonly = FALSE |
|||
| ) |
Exports the evaluation data to the IMSm CSV file format.
This format considers the original IMSm (Heidelberg) Question ID's
IMSm specific export - http://www.ims-m.org, http://www.medizinische-fakultaet-hd.uni-heidelberg.de/Computergestuetzte-Pruefungen.100385.0.html To be used with IMS-m/Examinator - File Format v1
TODO: Prevent export if shuffled answers mode in SC, MC is activated (this is not the case in the normal IMS-m scenario)
| string | $filtertext | Filter text for the user data |
| boolean | $passedonly | TRUE if only passed user datasets should be exported, FALSE otherwise public |
Definition at line 1136 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $pos, $row, $separator, $title, ilExcelUtils\_convert_text(), ilUtil\deliverData(), exit, and ilUtil\getASCIIFilename().
Here is the call graph for this function:| ilTestExport::exportXHTMLMediaObjects | ( | $a_export_dir | ) |
Definition at line 1336 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), and ilObjMediaObject\_getMobsOfObject().
Referenced by buildExportFileXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::getExtension | ( | ) |
Definition at line 89 of file class.ilTestExport.php.
Referenced by buildExportResultFile(), and ilTestExport().
Here is the caller graph for this function:| ilTestExport::getInstId | ( | ) |
Definition at line 98 of file class.ilTestExport.php.
References $inst_id.
| ilTestExport::ilTestExport | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
| ) |
Constructor public.
Definition at line 49 of file class.ilTestExport.php.
References $ilDB, $ilErr, $ilias, $lng, and getExtension().
Here is the call graph for this function:| ilTestExport::singleChoiceExport | ( | $adapter = null, |
|
$deliver = true, |
|||
$filterby = "", |
|||
$filtertext = "", |
|||
$passedonly = FALSE |
|||
| ) |
Definition at line 1365 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $pos, $row, $title, ilExcelUtils\_convert_text(), assSingleChoice\_getAnswerTexts(), assQuestion\_getSolutionValues(), ilObjUser\_lookupFields(), CELL_FORMAT_TITLE, ilExcelUtils\ExcelAdapter(), exit, and ilUtil\getASCIIFilename().
Here is the call graph for this function:
|
private |
Definition at line 829 of file class.ilTestExport.php.
References $ilLog, $pass, $row, ilExcelUtils\_convert_text(), ilTestEvaluationData\_getTimeStatsForTest(), CELL_FORMAT_BOLD, and CELL_FORMAT_TITLE.
Referenced by exportToExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::$db |
Definition at line 37 of file class.ilTestExport.php.
| ilTestExport::$err |
Definition at line 36 of file class.ilTestExport.php.
| ilTestExport::$ilias |
Definition at line 38 of file class.ilTestExport.php.
Referenced by ilTestExport().
| ilTestExport::$inst_id |
Definition at line 40 of file class.ilTestExport.php.
Referenced by getInstId().
|
private |
Definition at line 42 of file class.ilTestExport.php.
Referenced by ilTestExport().
| ilTestExport::$mode |
Definition at line 41 of file class.ilTestExport.php.
|
private |
Definition at line 43 of file class.ilTestExport.php.
| ilTestExport::$test_obj |
Definition at line 39 of file class.ilTestExport.php.