|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Export class for tests. More...
Collaboration diagram for ilTestExport: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... | |
Protected Attributes | |
| $resultExportingEnabledForTestExport = false | |
Private Attributes | |
| $lng | |
| $resultsfile | |
| ilTestExport::__construct | ( | & | $a_test_obj, |
$a_mode = "xml" |
|||
| ) |
Constructor.
Definition at line 45 of file class.ilTestExport.php.
References $ilDB, $ilErr, $ilias, $lng, and getExtension().
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 242 of file class.ilTestExport.php.
References $data, $separator, 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 174 of file class.ilTestExport.php.
References $data, $row, ilExcelUtils\_convert_text(), ilUtil\deliverFile(), exit, 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 121 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 1014 of file class.ilTestExport.php.
References $ilBench, exportXHTMLMediaObjects(), isResultExportingEnabledForTestExport(), ilUtil\makeDir(), 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 137 of file class.ilTestExport.php.
References $data, $file, $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:| 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 783 of file class.ilTestExport.php.
References $data, $ilLog, $pass, $separator, ilObjUser\_lookupFields(), aggregatedResultsToCSV(), ilUtil\deliverData(), exit, ilFormat\formatDate(), ilUtil\getASCIIFilename(), 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 302 of file class.ilTestExport.php.
References $data, $pass, $row, ilExcelUtils\_convert_text(), assQuestion\_instanciateQuestion(), assQuestion\_instantiateQuestion(), ilObjUser\_lookupFields(), aggregatedResultsToExcel(), ilUtil\deliverFile(), ilUtil\excelTime(), exit, ilUtil\getASCIIFilename(), ilUtil\ilTempnam(), 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 1101 of file class.ilTestExport.php.
References $mobs, ilObjMediaObject\_exists(), and ilObjMediaObject\_getMobsOfObject().
Referenced by buildExportFileXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestExport::getExtension | ( | ) |
Definition at line 100 of file class.ilTestExport.php.
Referenced by __construct(), and buildExportResultFile().
Here is the caller graph for this function:| ilTestExport::getInstId | ( | ) |
| ilTestExport::isResultExportingEnabledForTestExport | ( | ) |
Definition at line 87 of file class.ilTestExport.php.
References $resultExportingEnabledForTestExport.
Referenced by buildExportFileXML().
Here is the caller graph for this function:| ilTestExport::setResultExportingEnabledForTestExport | ( | $resultExprtingEnabledForTestExport | ) |
| boolean | $resultExprtingEnabledForTestExport |
Definition at line 95 of file class.ilTestExport.php.
| ilDB ilTestExport::$db |
Definition at line 24 of file class.ilTestExport.php.
| ilErrorHandling ilTestExport::$err |
Definition at line 21 of file class.ilTestExport.php.
| ILIAS ilTestExport::$ilias |
Definition at line 27 of file class.ilTestExport.php.
Referenced by __construct().
| ilTestExport::$inst_id |
Definition at line 32 of file class.ilTestExport.php.
Referenced by getInstId().
|
private |
Definition at line 36 of file class.ilTestExport.php.
Referenced by __construct().
| ilTestExport::$mode |
Definition at line 33 of file class.ilTestExport.php.
|
protected |
Definition at line 40 of file class.ilTestExport.php.
Referenced by isResultExportingEnabledForTestExport().
|
private |
Definition at line 38 of file class.ilTestExport.php.
| ilObjTest ilTestExport::$test_obj |
Definition at line 30 of file class.ilTestExport.php.