|  | 
|  | add_related_files ($component, $filearea, $mappingitemname, $filesctxid=null, $olditemid=null) | 
|  | Add all the existing file, given their component and filearea and one backup_ids itemname to match with. 
 | 
|  | 
|  | apply_date_offset ($value) | 
|  | Apply course startdate offset based in original course startdate and course_offset_startdate setting Note we are using one static cache here, but by restoreid, so it's ok for concurrence/multiple executions in the same request. 
 | 
|  | 
|  | get_mapping ($itemname, $oldid) | 
|  | Return the complete mapping from the given itemname, itemid. 
 | 
|  | 
|  | get_mappingid ($itemname, $oldid, $ifnotfound=false) | 
|  | Return the new id of a mapping for the given itemname. 
 | 
|  | 
|  | get_namefor ($name='') | 
|  | Simple helper function that returns the name for the restore_path_element It's not mandatory to use it but recommended ;-) 
 | 
|  | 
|  | get_new_parentid ($itemname) | 
|  | Returns the latest (parent) new id mapped by one pathelement. 
 | 
|  | 
|  | get_old_parentid ($itemname) | 
|  | Returns the latest (parent) old id mapped by one pathelement. 
 | 
|  | 
|  | get_pathfor ($path='') | 
|  | Simple helper function that returns the base (prefix) of the path for the restore_path_element Useful if we used get_recommended_name() in backup. 
 | 
|  | 
|  | get_restoreid () | 
|  | 
|  | get_setting_value ($name) | 
|  | Returns the value of one (task/plan) setting. 
 | 
|  | 
|  | get_task () | 
|  | Get the task we are part of. 
 | 
|  | 
|  | set_mapping ($itemname, $oldid, $newid, $restorefiles=false, $filesctxid=null, $parentid=null) | 
|  | To send ids pairs to backup_ids_table and to store them into paths. 
 | 
|  | 
Defines restore_qbank_plugin class. 
- Copyright
- 2021 Catalyst IT Australia Pty Ltd 
- Author
- Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Base class for qbank backup plugins.
- Copyright
- 2021 Catalyst IT Australia Pty Ltd 
- Author
- Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
  
  | 
        
          | static restore_plugin::get_restore_decode_contents | ( |  | $plugintype | ) |  |  | staticinherited | 
 
Returns one array with all the decode contents to be processed by the links decoder. 
This method, given one plugin type, returns one array of restore_decode_content objects that will be added to the restore decoder in order to perform modifications under the plugin contents.
The objects are retrieved by calling to the define_decode_contents method (when available), first in the main restore_xxxx_plugin class and later on each of the available subclasses