Abstract parent class for all test export plugin classes.
More...
|
| __construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id) |
|
| setTest (ilObjTest $test) |
|
| setTimestmap (int $timestmap) |
|
| getTimestmap () |
|
| getFormat () |
|
| write () |
|
| getFormatLabel () |
| This method should return a human readable label for your export. More...
|
|
| getMessage () |
|
| __construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id) |
|
| getPluginName () |
|
| getId () |
|
| getVersion () |
| Only very little classes seem to care about this: More...
|
|
| getDirectory () |
| Only very little classes seem to care about this: More...
|
|
| isActive () |
| Only very little classes seem to care about this: More...
|
|
| needsUpdate () |
|
| install () |
|
| uninstall () |
|
| activate () |
| This will update (if required) and activate the plugin. More...
|
|
| deactivate () |
|
| update () |
|
| loadLanguageModule () |
| Load language module for plugin. More...
|
|
| txt (string $a_var) |
| Get Language Variable (prefix will be prepended automatically) More...
|
|
| getTemplate (string $a_template, bool $a_par1=true, bool $a_par2=true) |
| ILIAS is moving towards UI components and plugins are expected to use these components. More...
|
|
| getStyleSheetLocation (string $a_css_file) |
| ILIAS is moving towards UI components and plugins are expected to use these components. More...
|
|
| addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) |
| ILIAS is moving towards UI components and plugins are expected to use these components. More...
|
|
| getGlobalScreenProviderCollection () |
|
| exchangeUIRendererAfterInitialization (\ILIAS\DI\Container $dic) |
| This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returning a closure returning a custom renderer. More...
|
|
| exchangeUIFactoryAfterInitialization (string $dic_key, \ILIAS\DI\Container $dic) |
| This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initialization by returning a closure returning a custom factory. More...
|
|
| deliver () |
|
Abstract parent class for all test export plugin classes.
- Author
- Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Definition at line 28 of file class.ilTestExportPlugin.php.
◆ __construct()
◆ buildExportFile()
This method is called if the user wants to export a test of YOUR export type If you throw an exception of type ilException with a respective language variable, ILIAS presents a translated failure message.
- Exceptions
-
- Parameters
-
ExportFilename | $export_path | The path to store the export file |
Referenced by createExportFile().
◆ createExportFile()
Definition at line 120 of file class.ilTestExportPlugin.php.
References Vendor\Package\$e, buildExportFile(), getFormatIdentifier(), getFormatLabel(), ilPlugin\getId(), getTest(), null, ILIAS\UICore\GlobalTemplate\setOnScreenMessage(), and ilPlugin\txt().
Referenced by getFormat(), and write().
123 throw new ilException(
'Incomplete object configuration. Please pass an instance of ilObjTest before calling the export!');
129 return $export_filename->getPathname();
131 if ($this->
txt($e->getMessage()) ==
'-' . $e->getMessage() .
'-') {
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
txt(string $a_var)
Get Language Variable (prefix will be prepended automatically)
buildExportFile(ExportFilename $export_path)
This method is called if the user wants to export a test of YOUR export type If you throw an exceptio...
◆ getFormat()
ilTestExportPlugin::getFormat |
( |
| ) |
|
|
final |
◆ getFormatIdentifier()
ilTestExportPlugin::getFormatIdentifier |
( |
| ) |
|
|
abstractprotected |
A unique identifier which describes your export type, e.g.
imsm There is currently no mapping implemented concerning the filename. Feel free to create csv, xml, zip files ....
- Returns
- string
Referenced by createExportFile(), and getFormat().
◆ getFormatLabel()
ilTestExportPlugin::getFormatLabel |
( |
| ) |
|
|
abstract |
This method should return a human readable label for your export.
- Returns
- string
Referenced by createExportFile().
◆ getTest()
ilTestExportPlugin::getTest |
( |
| ) |
|
|
finalprotected |
◆ getTimestmap()
ilTestExportPlugin::getTimestmap |
( |
| ) |
|
◆ setTest()
ilTestExportPlugin::setTest |
( |
ilObjTest |
$test | ) |
|
|
final |
◆ setTimestmap()
ilTestExportPlugin::setTimestmap |
( |
int |
$timestmap | ) |
|
◆ write()
ilTestExportPlugin::write |
( |
| ) |
|
|
final |
◆ $reserved_formats
ilTestExportPlugin::$reserved_formats |
|
staticprotected |
◆ $test
◆ $timestmap
int ilTestExportPlugin::$timestmap = -1 |
|
protected |
The documentation for this class was generated from the following file: