|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Export class for tests. More...
Inheritance diagram for ilTestExport:
Collaboration diagram for ilTestExport:Public Member Functions | |
| __construct (&$a_test_obj, $a_mode="xml") | |
| Constructor. More... | |
| isResultExportingEnabledForTestExport () | |
| setResultExportingEnabledForTestExport ($resultExprtingEnabledForTestExport) | |
| getForcedAccessFilteredParticipantList () | |
| setForcedAccessFilteredParticipantList (ilTestParticipantList $forcedAccessFilteredParticipantList) | |
| getAccessFilteredParticipantList () | |
| 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... | |
| orderQuestions (array $questions) | |
| 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 | |
| $forcedAccessFilteredParticipantList = null | |
Private Attributes | |
| $lng | |
| $resultsfile | |
| ilTestExport::__construct | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
| ) |
Constructor.
Definition at line 49 of file class.ilTestExport.php.
References $DIC, $ilDB, $ilErr, $ilias, $lng, getExtension(), and IL_INST_ID.
Here is the call graph for this function:
|
protected |
Exports the aggregated results to CSV.
| boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 275 of file class.ilTestExport.php.
References $data, $rows, 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 212 of file class.ilTestExport.php.
References $data, ilUtil\getASCIIFilename(), and ilUtil\ilTempnam().
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)
@access public
Definition at line 158 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 992 of file class.ilTestExport.php.
References $DIC, $ilBench, buildQuestionSkillAssignmentList(), exportXHTMLMediaObjects(), getQtiXml(), getQuestionIds(), initXmlExport(), isResultExportingEnabledForTestExport(), ilUtil\makeDir(), populateQuestionSetConfigXml(), populateQuestionSkillAssignmentsXml(), populateSkillLevelThresholdsXml(), 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 xml export file
Definition at line 173 of file class.ilTestExport.php.
References $data, $DIC, $filename, $ilBench, $log, 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:
|
protected |
Definition at line 1187 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
Here is the caller graph for this function:| 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 @access public |
Definition at line 758 of file class.ilTestExport.php.
References $data, $i, $pass, $rows, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), ilUtil\deliverData(), exit, ilDatePresentation\formatDate(), ilUtil\getASCIIFilename(), IL_CAL_UNIX, ilObjTest\lookupPassResultsUpdateTimestamp(), orderQuestions(), 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.
| 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 331 of file class.ilTestExport.php.
References $data, $pass, ilObjTest\_instanciateQuestion(), assQuestion\_instanciateQuestion(), assQuestion\_instantiateQuestion(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), getAccessFilteredParticipantList(), ilUtil\getASCIIFilename(), IL_CAL_UNIX, ilUtil\ilTempnam(), ilObjTest\lookupPassResultsUpdateTimestamp(), orderQuestions(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::exportXHTMLMediaObjects | ( | $a_export_dir | ) |
Definition at line 1128 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and getQuestionIds().
Referenced by buildExportFileXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::getAccessFilteredParticipantList | ( | ) |
Definition at line 127 of file class.ilTestExport.php.
References getForcedAccessFilteredParticipantList().
Referenced by exportToExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::getExtension | ( | ) |
Definition at line 136 of file class.ilTestExport.php.
Referenced by __construct(), and buildExportResultFile().
Here is the caller graph for this function:| ilTestExport::getForcedAccessFilteredParticipantList | ( | ) |
Definition at line 111 of file class.ilTestExport.php.
References $forcedAccessFilteredParticipantList.
Referenced by getAccessFilteredParticipantList().
Here is the caller graph for this function:| ilTestExport::getInstId | ( | ) |
|
protected |
Definition at line 1099 of file class.ilTestExport.php.
References getQuestionsQtiXml().
Referenced by buildExportFileXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ilTestExportDynamicQuestionSet, ilTestExportFixedQuestionSet, and ilTestExportRandomQuestionSet.
Referenced by buildExportFileXML(), and exportXHTMLMediaObjects().
Here is the caller graph for this function:
|
protected |
Definition at line 1115 of file class.ilTestExport.php.
References $xml, and assQuestion\_instantiateQuestion().
Referenced by ilTestExportFixedQuestionSet\getQuestionsQtiXml(), and ilTestExportRandomQuestionSet\getQuestionsQtiXml().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ilTestExportDynamicQuestionSet, ilTestExportFixedQuestionSet, and ilTestExportRandomQuestionSet.
Referenced by getQtiXml().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ilTestExportDynamicQuestionSet, ilTestExportFixedQuestionSet, and ilTestExportRandomQuestionSet.
Referenced by buildExportFileXML().
Here is the caller graph for this function:| ilTestExport::isResultExportingEnabledForTestExport | ( | ) |
Definition at line 95 of file class.ilTestExport.php.
References $resultExportingEnabledForTestExport.
Referenced by buildExportFileXML().
Here is the caller graph for this function:
|
protected |
Definition at line 970 of file class.ilTestExport.php.
References Vendor\Package\$a, and Vendor\Package\$b.
Referenced by exportToCSV(), and exportToExcel().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ilTestExportDynamicQuestionSet, ilTestExportFixedQuestionSet, and ilTestExportRandomQuestionSet.
Referenced by buildExportFileXML().
Here is the caller graph for this function:
|
protected |
| ilXmlWriter | $a_xml_writer | |
| $questions |
Definition at line 1156 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
Here is the caller graph for this function:
|
protected |
Definition at line 1166 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
Here is the caller graph for this function:| ilTestExport::setForcedAccessFilteredParticipantList | ( | ilTestParticipantList | $forcedAccessFilteredParticipantList | ) |
| ilTestParticipantList | $forcedAccessFilteredParticipantList |
Definition at line 119 of file class.ilTestExport.php.
References $forcedAccessFilteredParticipantList.
| ilTestExport::setResultExportingEnabledForTestExport | ( | $resultExprtingEnabledForTestExport | ) |
| boolean | $resultExprtingEnabledForTestExport |
Definition at line 103 of file class.ilTestExport.php.
| ilDBInterface ilTestExport::$db |
Definition at line 23 of file class.ilTestExport.php.
| ilErrorHandling ilTestExport::$err |
Definition at line 20 of file class.ilTestExport.php.
|
protected |
Definition at line 44 of file class.ilTestExport.php.
Referenced by getForcedAccessFilteredParticipantList(), and setForcedAccessFilteredParticipantList().
| ILIAS 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.
| ilObjTest ilTestExport::$test_obj |
Definition at line 29 of file class.ilTestExport.php.