ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Export class for tests. More...
Public Member Functions | |
__construct (&$a_test_obj, $a_mode="xml") | |
Constructor. More... | |
isResultExportingEnabledForTestExport () | |
setResultExportingEnabledForTestExport ($resultExprtingEnabledForTestExport) | |
getExtension () | |
getInstId () | |
buildExportFile () | |
build export file (complete zip file) More... | |
buildExportResultFile () | |
build xml export file More... | |
exportToExcel ($deliver=TRUE, $filterby="", $filtertext="", $passedonly=FALSE) | |
Exports the evaluation data to the Microsoft Excel file format. More... | |
exportToCSV ($deliver=TRUE, $filterby="", $filtertext="", $passedonly=FALSE) | |
Exports the evaluation data to the CSV file format. More... | |
buildExportFileXML () | |
build xml export file More... | |
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. More... | |
aggregatedResultsToCSV ($deliver=TRUE) | |
Exports the aggregated results to CSV. More... | |
initXmlExport () | |
getQuestionIds () | |
populateQuestionSetConfigXml (ilXmlWriter $xmlWriter) | |
getQtiXml () | |
getQuestionsQtiXml () | |
getQuestionQtiXml ($questionId) | |
populateQuestionSkillAssignmentsXml (ilXmlWriter $a_xml_writer, ilAssQuestionSkillAssignmentList $assignmentList, $questions) | |
populateSkillLevelThresholdsXml (ilXmlWriter $a_xml_writer, ilAssQuestionSkillAssignmentList $assignmentList) | |
buildQuestionSkillAssignmentList () | |
Protected Attributes | |
$resultExportingEnabledForTestExport = false | |
Private Attributes | |
$lng | |
$resultsfile | |
ilTestExport::__construct | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
) |
Constructor.
Definition at line 44 of file class.ilTestExport.php.
References $ilDB, $ilErr, $ilias, $lng, getExtension(), and time.
|
protected |
Exports the aggregated results to CSV.
boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 242 of file class.ilTestExport.php.
References $data, array, 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 174 of file class.ilTestExport.php.
References $data, $row, $worksheet, ilUtil\getASCIIFilename(), and ilUtil\ilTempnam().
Referenced by exportToExcel().
ilTestExport::buildExportFile | ( | ) |
build export file (complete zip file)
public
Definition at line 120 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 1041 of file class.ilTestExport.php.
References $ilBench, array, buildQuestionSkillAssignmentList(), date, exportXHTMLMediaObjects(), getQtiXml(), getQuestionIds(), initXmlExport(), isResultExportingEnabledForTestExport(), ilUtil\makeDir(), populateQuestionSetConfigXml(), populateQuestionSkillAssignmentsXml(), populateSkillLevelThresholdsXml(), ilTestResultsToXML\setIncludeRandomTestQuestionsEnabled(), ilXmlWriter\xmlSetDtdDef(), and ilUtil\zip().
Referenced by buildExportFile().
ilTestExport::buildExportResultFile | ( | ) |
build xml export file
Definition at line 136 of file class.ilTestExport.php.
References $data, $file, $filename, $ilBench, $log, date, exportToCSV(), exportToExcel(), getExtension(), and ilUtil\makeDir().
Referenced by buildExportFile().
|
protected |
Definition at line 1238 of file class.ilTestExport.php.
References $ilDB.
Referenced by buildExportFileXML().
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 806 of file class.ilTestExport.php.
References $counter, $data, $ilLog, $pass, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), array, ilUtil\deliverData(), exit, ilDatePresentation\formatDate(), ilUtil\getASCIIFilename(), getQuestionIds(), IL_CAL_UNIX, initXmlExport(), 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 304 of file class.ilTestExport.php.
References $counter, $data, $pass, $row, $title, $worksheet, assQuestion\_instanciateQuestion(), ilObjTest\_instanciateQuestion(), assQuestion\_instantiateQuestion(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), array, ilUtil\getASCIIFilename(), IL_CAL_UNIX, ilUtil\ilTempnam(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
ilTestExport::exportXHTMLMediaObjects | ( | $a_export_dir | ) |
Definition at line 1175 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and getQuestionIds().
Referenced by buildExportFileXML().
ilTestExport::getExtension | ( | ) |
Definition at line 99 of file class.ilTestExport.php.
Referenced by __construct(), and buildExportResultFile().
ilTestExport::getInstId | ( | ) |
|
protected |
Definition at line 1143 of file class.ilTestExport.php.
References getQuestionsQtiXml().
Referenced by buildExportFileXML().
|
abstractprotected |
Referenced by buildExportFileXML(), exportToCSV(), and exportXHTMLMediaObjects().
|
protected |
Definition at line 1162 of file class.ilTestExport.php.
References assQuestion\_instantiateQuestion().
Referenced by ilTestExportFixedQuestionSet\getQuestionsQtiXml(), and ilTestExportRandomQuestionSet\getQuestionsQtiXml().
|
abstractprotected |
|
abstractprotected |
ilTestExport::isResultExportingEnabledForTestExport | ( | ) |
Definition at line 86 of file class.ilTestExport.php.
References $resultExportingEnabledForTestExport.
Referenced by buildExportFileXML().
|
abstractprotected |
|
protected |
ilXmlWriter | $a_xml_writer | |
$questions |
Definition at line 1208 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
|
protected |
Definition at line 1218 of file class.ilTestExport.php.
References $ilDB.
Referenced by buildExportFileXML().
ilTestExport::setResultExportingEnabledForTestExport | ( | $resultExprtingEnabledForTestExport | ) |
boolean | $resultExprtingEnabledForTestExport |
Definition at line 94 of file class.ilTestExport.php.
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.
|
protected |
Definition at line 39 of file class.ilTestExport.php.
Referenced by isResultExportingEnabledForTestExport().
|
private |
Definition at line 37 of file class.ilTestExport.php.
ilTestExport::$test_obj |
Definition at line 29 of file class.ilTestExport.php.