ILIAS
release_4-3 Revision
|
Export class for tests. More...
Public Member Functions | |
ilTestExport (&$a_test_obj, $a_mode="xml") | |
Constructor public. | |
getExtension () | |
getInstId () | |
buildExportFile () | |
build export file (complete zip file) | |
buildExportResultFile () | |
build xml export file | |
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. | |
buildExportFileXML () | |
build xml export file | |
exportXHTMLMediaObjects ($a_export_dir) |
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 Attributes | |
$lng | |
$resultsfile |
|
protected |
Exports the aggregated results to CSV.
boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 230 of file class.ilTestExport.php.
References $data, $separator, ilUtil\deliverData(), exit, and ilUtil\getASCIIFilename().
Referenced by exportToCSV().
|
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 164 of file class.ilTestExport.php.
References $data, $row, ilExcelUtils\_convert_text(), ilUtil\deliverFile(), exit, ilUtil\getASCIIFilename(), and ilUtil\ilTempnam().
Referenced by exportToExcel().
ilTestExport::buildExportFile | ( | ) |
build export file (complete zip file)
public
Definition at line 111 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 1001 of file class.ilTestExport.php.
References $ilBench, exportXHTMLMediaObjects(), ilUtil\makeDir(), ilTestResultsToXML\xmlDumpFile(), ilXmlWriter\xmlSetDtdDef(), and ilUtil\zip().
Referenced by buildExportFile().
ilTestExport::buildExportResultFile | ( | ) |
build xml export file
Definition at line 127 of file class.ilTestExport.php.
References $data, $file, $filename, $ilBench, $log, exportToCSV(), exportToExcel(), getExtension(), and ilUtil\makeDir().
Referenced by buildExportFile().
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 770 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $separator, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), ilUtil\deliverData(), exit, ilFormat\formatDate(), ilUtil\getASCIIFilename(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
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 287 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $row, $title, ilExcelUtils\_convert_text(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), ilUtil\deliverFile(), ilUtil\excelTime(), exit, ilUtil\getASCIIFilename(), ilUtil\ilTempnam(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
ilTestExport::exportXHTMLMediaObjects | ( | $a_export_dir | ) |
Definition at line 1088 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), and ilObjMediaObject\_getMobsOfObject().
Referenced by buildExportFileXML().
ilTestExport::getExtension | ( | ) |
Definition at line 90 of file class.ilTestExport.php.
Referenced by buildExportResultFile(), and ilTestExport().
ilTestExport::getInstId | ( | ) |
Definition at line 99 of file class.ilTestExport.php.
References $inst_id.
ilTestExport::ilTestExport | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
) |
Constructor public.
Definition at line 50 of file class.ilTestExport.php.
References $ilErr, $ilias, $lng, and getExtension().
ilTestExport::$db |
Definition at line 38 of file class.ilTestExport.php.
ilTestExport::$err |
Definition at line 37 of file class.ilTestExport.php.
ilTestExport::$ilias |
Definition at line 39 of file class.ilTestExport.php.
Referenced by ilTestExport().
ilTestExport::$inst_id |
Definition at line 41 of file class.ilTestExport.php.
Referenced by getInstId().
|
private |
Definition at line 43 of file class.ilTestExport.php.
Referenced by ilTestExport().
ilTestExport::$mode |
Definition at line 42 of file class.ilTestExport.php.
|
private |
Definition at line 44 of file class.ilTestExport.php.
ilTestExport::$test_obj |
Definition at line 40 of file class.ilTestExport.php.