ILIAS
Release_5_0_x_branch Revision 61816
|
Export class for tests. More...
Public Member Functions | |
__construct (&$a_test_obj, $a_mode="xml") | |
Constructor. | |
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 17 of file class.ilTestExport.php.
ilTestExport::__construct | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
) |
Constructor.
Definition at line 42 of file class.ilTestExport.php.
References $ilDB, $ilErr, $ilias, $lng, and getExtension().
|
protected |
Exports the aggregated results to CSV.
boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 223 of file class.ilTestExport.php.
References $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 155 of file class.ilTestExport.php.
References $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 102 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 995 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 118 of file class.ilTestExport.php.
References $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 764 of file class.ilTestExport.php.
References $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.
bool | $deliver | |
string | $filterby | |
string | $filtertext | Filter text for the user data |
boolean | $passedonly | TRUE if only passed user datasets should be exported, FALSE otherwise |
Definition at line 283 of file class.ilTestExport.php.
References $pass, $row, ilExcelUtils\_convert_text(), assQuestion\_instanciateQuestion(), 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 1082 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), and ilObjMediaObject\_getMobsOfObject().
Referenced by buildExportFileXML().
ilTestExport::getExtension | ( | ) |
Definition at line 81 of file class.ilTestExport.php.
Referenced by __construct(), and buildExportResultFile().
ilTestExport::getInstId | ( | ) |
Definition at line 90 of file class.ilTestExport.php.
References $inst_id.
ilTestExport::$db |
Definition at line 23 of file class.ilTestExport.php.
ilTestExport::$err |
Definition at line 20 of file class.ilTestExport.php.
ilTestExport::$ilias |
Definition at line 26 of file class.ilTestExport.php.
Referenced by __construct().
ilTestExport::$inst_id |
Definition at line 31 of file class.ilTestExport.php.
Referenced by getInstId().
|
private |
Definition at line 35 of file class.ilTestExport.php.
Referenced by __construct().
ilTestExport::$mode |
Definition at line 32 of file class.ilTestExport.php.
|
private |
Definition at line 37 of file class.ilTestExport.php.
ilTestExport::$test_obj |
Definition at line 29 of file class.ilTestExport.php.