ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 | |
string | $export_dir |
string | $subdir |
string | $qti_filename |
$lng | |
$resultsfile | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Export class for tests
Definition at line 32 of file class.ilTestExport.php.
ilTestExport::__construct | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
) |
Constructor.
Definition at line 67 of file class.ilTestExport.php.
References $DIC, $ilDB, $ilErr, $ilias, $lng, getExtension(), IL_INST_ID, and ILIAS\Repository\lng().
|
protected |
Exports the aggregated results to CSV.
boolean | $deliver | TRUE to directly deliver the file, FALSE to return the data |
Definition at line 291 of file class.ilTestExport.php.
References $data, ILIAS\LTI\ToolProvider\$key, $rows, ilUtil\deliverData(), exit, ilFileUtils\getASCIIFilename(), and ILIAS\Repository\lng().
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 229 of file class.ilTestExport.php.
References $data, ILIAS\LTI\ToolProvider\$key, ilFileUtils\getASCIIFilename(), ilFileUtils\ilTempnam(), and ILIAS\Repository\lng().
Referenced by exportToExcel().
ilTestExport::buildExportFile | ( | ) |
build export file (complete zip file)
public
Definition at line 176 of file class.ilTestExport.php.
References buildExportFileXML(), and buildExportResultFile().
ilTestExport::buildExportFileXML | ( | ) |
build xml export file
Definition at line 1110 of file class.ilTestExport.php.
References $DIC, buildQuestionSkillAssignmentList(), exportXHTMLMediaObjects(), getQtiXml(), getQuestionIds(), initXmlExport(), isResultExportingEnabledForTestExport(), ilFileUtils\makeDir(), populateQuestionSetConfigXml(), populateQuestionSkillAssignmentsXml(), populateSkillLevelThresholdsXml(), ilTestResultsToXML\setIncludeRandomTestQuestionsEnabled(), and ilFileUtils\zip().
Referenced by buildExportFile().
ilTestExport::buildExportResultFile | ( | ) |
build xml export file
Definition at line 191 of file class.ilTestExport.php.
References $data, $DIC, $filename, $log, exportToCSV(), exportToExcel(), getExtension(), and ilFileUtils\makeDir().
Referenced by buildExportFile().
|
protected |
Definition at line 1306 of file class.ilTestExport.php.
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 873 of file class.ilTestExport.php.
References $data, $i, $rows, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), ilUtil\deliverData(), exit, ilDatePresentation\formatDate(), ilFileUtils\getASCIIFilename(), IL_CAL_UNIX, ILIAS\Repository\lng(), ilObjTest\lookupPassResultsUpdateTimestamp(), orderQuestions(), 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 345 of file class.ilTestExport.php.
References $data, $id, ilObjTest\_instanciateQuestion(), assQuestion\_instantiateQuestion(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), getAccessFilteredParticipantList(), ilFileUtils\getASCIIFilename(), IL_CAL_UNIX, ilFileUtils\ilTempnam(), assQuestion\instantiateQuestion(), ILIAS\Repository\lng(), ilObjTest\lookupPassResultsUpdateTimestamp(), orderQuestions(), and SCORE_BEST_PASS.
Referenced by buildExportResultFile().
ilTestExport::exportXHTMLMediaObjects | ( | $a_export_dir | ) |
Definition at line 1246 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and getQuestionIds().
Referenced by buildExportFileXML().
ilTestExport::getAccessFilteredParticipantList | ( | ) |
Definition at line 145 of file class.ilTestExport.php.
References getForcedAccessFilteredParticipantList().
Referenced by exportToExcel().
ilTestExport::getExtension | ( | ) |
Definition at line 154 of file class.ilTestExport.php.
Referenced by __construct(), and buildExportResultFile().
ilTestExport::getForcedAccessFilteredParticipantList | ( | ) |
Definition at line 129 of file class.ilTestExport.php.
References $forcedAccessFilteredParticipantList.
Referenced by getAccessFilteredParticipantList().
ilTestExport::getInstId | ( | ) |
|
protected |
Definition at line 1217 of file class.ilTestExport.php.
References getQuestionsQtiXml().
Referenced by buildExportFileXML().
|
abstractprotected |
Referenced by buildExportFileXML(), exportXHTMLMediaObjects(), and orderQuestions().
|
protected |
Definition at line 1233 of file class.ilTestExport.php.
References $xml, and assQuestion\_instantiateQuestion().
Referenced by ilTestExportFixedQuestionSet\getQuestionsQtiXml(), and ilTestExportRandomQuestionSet\getQuestionsQtiXml().
|
abstractprotected |
|
abstractprotected |
Referenced by buildExportFileXML(), and orderQuestions().
ilTestExport::isResultExportingEnabledForTestExport | ( | ) |
Definition at line 113 of file class.ilTestExport.php.
References $resultExportingEnabledForTestExport.
Referenced by buildExportFileXML().
|
protected |
Definition at line 1088 of file class.ilTestExport.php.
References Vendor\Package\$a, Vendor\Package\$b, ILIAS\LTI\ToolProvider\$key, getQuestionIds(), and initXmlExport().
Referenced by exportToCSV(), and exportToExcel().
|
abstractprotected |
|
protected |
ilXmlWriter | $a_xml_writer | |
ilAssQuestionSkillAssignmentList | $assignmentList | |
$questions |
Definition at line 1275 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
|
protected |
Definition at line 1285 of file class.ilTestExport.php.
Referenced by buildExportFileXML().
ilTestExport::setForcedAccessFilteredParticipantList | ( | ilTestParticipantList | $forcedAccessFilteredParticipantList | ) |
ilTestParticipantList | $forcedAccessFilteredParticipantList |
Definition at line 137 of file class.ilTestExport.php.
References $forcedAccessFilteredParticipantList.
ilTestExport::setResultExportingEnabledForTestExport | ( | $resultExprtingEnabledForTestExport | ) |
boolean | $resultExprtingEnabledForTestExport |
Definition at line 121 of file class.ilTestExport.php.
ilTestExport::$db |
Definition at line 41 of file class.ilTestExport.php.
ilTestExport::$err |
Definition at line 38 of file class.ilTestExport.php.
|
private |
Definition at line 34 of file class.ilTestExport.php.
|
protected |
Definition at line 62 of file class.ilTestExport.php.
Referenced by getForcedAccessFilteredParticipantList(), and setForcedAccessFilteredParticipantList().
ilTestExport::$ilias |
Definition at line 44 of file class.ilTestExport.php.
Referenced by __construct().
ilTestExport::$inst_id |
Definition at line 49 of file class.ilTestExport.php.
Referenced by getInstId().
|
private |
Definition at line 53 of file class.ilTestExport.php.
Referenced by __construct().
ilTestExport::$mode |
Definition at line 50 of file class.ilTestExport.php.
|
private |
Definition at line 36 of file class.ilTestExport.php.
|
protected |
Definition at line 57 of file class.ilTestExport.php.
Referenced by isResultExportingEnabledForTestExport().
|
private |
Definition at line 55 of file class.ilTestExport.php.
|
private |
Definition at line 35 of file class.ilTestExport.php.
ilTestExport::$test_obj |
Definition at line 47 of file class.ilTestExport.php.