Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
convert_factory Class Reference

Factory class to create new instances of backup converters. More...

Static Public Member Functions

static get_converter ($name, $tempdir, $logger=null)
 Instantinates the given converter operating on a given directory. More...
 

Detailed Description

Factory class to create new instances of backup converters.

Member Function Documentation

◆ get_converter()

static convert_factory::get_converter (   $name,
  $tempdir,
  $logger = null 
)
static

Instantinates the given converter operating on a given directory.

Exceptions
coding_exception
Parameters
$nameThe converter name
$tempdirThe temp directory to operate on
base_logger|nullif the conversion should be logged, use this logger
Return values
base_converter

The documentation for this class was generated from the following file: