Abstract parent class for all event hook plugin classes.  
 More...
 | 
|   | __construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id) | 
|   | 
|   | setTest (ilObjTest $test) | 
|   | 
|   | setTimestmap (int $timestmap) | 
|   | 
|   | getTimestmap () | 
|   | 
|   | getFormat () | 
|   | 
|   | 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...
  | 
|   | 
Abstract parent class for all event hook plugin classes. 
- Author
 - Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de 
 
- Version
 - $Id$ 
 
Definition at line 27 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
 - 
  
    | string | $export_path | The path to store the export file  | 
  
   
Referenced by getFormat().
 
 
◆ getFormat()
  
  
      
        
          | ilTestExportPlugin::getFormat  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
final   | 
  
 
- Exceptions
 - 
  
  
 
Definition at line 72 of file class.ilTestExportPlugin.php.
References $DIC, Vendor\Package\$e, $lng, buildExportFile(), getFormatIdentifier(), getFormatLabel(), getTest(), and ilPlugin\txt().
   76         if (!is_string($format_id)) {
    77             throw new ilException(
'The format must be of type string.');
    80         if (!strlen($format_id)) {
    84         if (strtolower($format_id) != $format_id) {
    85             throw new ilException(
'Please use a lowercase format.');
    88         if (in_array($format_id, self::$reserved_formats)) {
    89             throw new ilException(
'The format must not be one of: ' . implode(
', ', self::$reserved_formats));
 
getFormatIdentifier()
A unique identifier which describes your export type, e.g. 
 
 
 
 
◆ 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 getFormat().
 
 
◆ getFormatLabel()
  
  
      
        
          | ilTestExportPlugin::getFormatLabel  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
This method should return a human readable label for your export. 
- Returns
 - string 
 
Referenced by getFormat().
 
 
◆ getTest()
  
  
      
        
          | ilTestExportPlugin::getTest  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
finalprotected   | 
  
 
 
◆ getTimestmap()
      
        
          | ilTestExportPlugin::getTimestmap  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ setTest()
  
  
      
        
          | ilTestExportPlugin::setTest  | 
          ( | 
          ilObjTest  | 
          $test | ) | 
           | 
         
       
   | 
  
final   | 
  
 
 
◆ setTimestmap()
      
        
          | ilTestExportPlugin::setTimestmap  | 
          ( | 
          int  | 
          $timestmap | ) | 
           | 
        
      
 
 
◆ $main_tpl
◆ $reserved_formats
  
  
      
        
          | ilTestExportPlugin::$reserved_formats | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ $test
◆ $timestmap
  
  
      
        
          | int ilTestExportPlugin::$timestmap = -1 | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: