ILIAS
Release_4_1_x_branch Revision 61804
|
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 |
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 229 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 163 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 110 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 998 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 126 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 762 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().
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 286 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 1085 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), and ilObjMediaObject\_getMobsOfObject().
Referenced by buildExportFileXML().
ilTestExport::getExtension | ( | ) |
Definition at line 89 of file class.ilTestExport.php.
Referenced by buildExportResultFile(), and ilTestExport().
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().
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.