Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Contains the import_handler_info class.

Copyright: 2020 Jake Dallimore <jrhdallimore@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 91 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

import_handler_info:: (4 methods):
  __construct()
  get_module_name()
  get_description()
  get_strategy()


Class: import_handler_info  - X-Ref

The import_handler_info class.

An import_handler_info object represent an resource import handler for a particular module.

__construct(string $modulename, string $description, import_strategy $strategy)   X-Ref
The import_handler_info constructor.

param: string $modulename the name of the module handling the file extension. E.g. 'label'.
param: string $description A description of how the module handles files of this extension type.
param: import_strategy $strategy the strategy which will be used to import the resource.

get_module_name()   X-Ref
Get the name of the module.

return: string the module name, e.g. 'label'.

get_description()   X-Ref
Get a human readable, localised description of how the file is handled by the module.

return: string the localised description.

get_strategy()   X-Ref
Get the import strategy used by this handler.

return: import_strategy the import strategy object.