Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.