4 require_once
'Services/Component/classes/class.ilPlugin.php';
5 require_once
'Modules/Test/classes/class.ilTestExportFilename.php';
116 if(!is_string($format_id))
118 throw new ilException(
'The format must be of type string.');
121 if(!strlen($format_id))
126 if(strtolower($format_id) != $format_id)
128 throw new ilException(
'Please use a lowercase format.');
131 if(in_array($format_id, self::$reserved_formats))
133 throw new ilException(
'The format must not be one of: ' . implode(
', ', self::$reserved_formats));
142 final public function export()
152 throw new ilException(
'Incomplete object configuration. Please pass an instance of ilObjTest before calling the export!');
161 if($this->
txt($e->getMessage()) ==
'-' . $e->getMessage() .
'-')
169 $ilCtrl->redirectByClass(
'iltestexportgui');
173 $ilCtrl->redirectByClass(
'iltestexportgui');
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Base class for ILIAS Exception handling.
Abstract parent class for all event hook plugin classes.
getComponentName()
Get Component Name.
getComponentType()
Get Component Type.
getFormatLabel()
This method should return a human readable label for your export.
getFormatIdentifier()
A unique identifier which describes your export type, e.g.
slotInit()
Object initialization done by slot.
Removing first two heading rows for CSV export
txt($a_var)
Get Language Variable (prefix will be prepended automatically)
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
buildExportFile(ilTestExportFilename $export_path)
This method is called if the user wants to export a test of YOUR export type If you throw an exceptio...