Data preset importer for existing presets.
More...
|
|
| $cm |
| |
|
| $course |
| |
|
| $directory |
| |
|
| $module |
| |
|
| $userid |
| |
Data preset importer for existing presets.
- Deprecated
- since Moodle 4.1 MDL-75140 - please do not use this class any more.
- Todo
- MDL-75189 Final deprecation in Moodle 4.5.
◆ __construct()
| data_preset_existing_importer::__construct |
( |
| $course, |
|
|
| $cm, |
|
|
| $module, |
|
|
| $directory ) |
Constructor.
- Parameters
-
| stdClass | $course | |
| stdClass | $cm | |
| stdClass | $module | |
| string | $directory | |
Reimplemented from data_preset_importer.
◆ cleanup()
| data_preset_importer::cleanup |
( |
| ) |
|
|
inherited |
◆ data_preset_get_file_contents()
| data_preset_importer::data_preset_get_file_contents |
( |
& | $filestorage, |
|
|
& | $fileobj, |
|
|
| $dir, |
|
|
| $filename ) |
|
inherited |
Retreive the contents of a file.
That file may either be in a conventional directory of the Moodle file storage
- Parameters
-
| file_storage | $filestorage,. | should be null if using a conventional directory |
| stored_file | $fileobj | the directory to look in. null if using a conventional directory |
| string | $dir | the directory to look in. null if using the Moodle file storage |
| string | $filename | the name of the file we want |
- Return values
-
| string | the contents of the file or null if the file doesn't exist. |
◆ get_directory()
| data_preset_importer::get_directory |
( |
| ) |
|
|
inherited |
Returns the name of the directory the preset is located in.
- Return values
-
◆ get_preset_settings()
Gets the preset settings $DB.
- Return values
-
◆ import()
| data_preset_importer::import |
( |
| $overwritesettings | ) |
|
|
inherited |
Import the preset into the given database module.
- Return values
-
The documentation for this class was generated from the following file: