Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
tool_dbtransfer

Files

file  database_export_form.php
 Transfer form.
 
file  database_transfer_form.php
 Transfer form.
 
file  locallib.php
 Export db content to file.
 
file  provider.php
 Privacy Subsystem implementation for tool_dbtransfer.
 
file  settings.php
 Add hidden links db transfer tool.
 
file  version.php
 Version details.
 

Namespaces

namespace  tool_dbtransfer\privacy
  
 

Classes

class  database_export_form
 Definition of db export settings form. More...
 
class  database_transfer_form
 Definition of db transfer settings form. More...
 
class  tool_dbtransfer\privacy\provider
 Privacy Subsystem for tool_dbtransfer implementing null_provider. More...
 

Functions

 tool_dbtransfer_create_maintenance_file ()
 Create CLI maintenance file to prevent all access.
 
 tool_dbtransfer_export_xml_database ($description, $mdb)
 Initiate database export. More...
 
 tool_dbtransfer_get_drivers ()
 Returns list of fully working database drivers present in system. More...
 
 tool_dbtransfer_maintenance_callback ()
 This callback is responsible for unsetting maintenance mode if the migration is interrupted.
 
 tool_dbtransfer_rebuild_target_log_actions (moodle_database $target, progress_trace $feedback=null)
 Very hacky function for rebuilding of log actions in target database. More...
 
 tool_dbtransfer_transfer_database (moodle_database $sourcedb, moodle_database $targetdb, progress_trace $feedback=null)
 Initiate database transfer. More...
 

Variables

 $plugin = 2020060900
 
$plugin component = 'tool_dbtransfer'
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ tool_dbtransfer_export_xml_database()

tool_dbtransfer_export_xml_database (   $description,
  $mdb 
)

Initiate database export.

Parameters
string$description
moodle_database$mdb
Return values
doesnot return, calls die()

◆ tool_dbtransfer_get_drivers()

tool_dbtransfer_get_drivers ( )

Returns list of fully working database drivers present in system.

Return values
array

◆ tool_dbtransfer_rebuild_target_log_actions()

tool_dbtransfer_rebuild_target_log_actions ( moodle_database  $target,
progress_trace  $feedback = null 
)

Very hacky function for rebuilding of log actions in target database.

Parameters
moodle_database$target
progress_trace$feedback
Return values
void
Exceptions
Exceptionon conversion error

◆ tool_dbtransfer_transfer_database()

tool_dbtransfer_transfer_database ( moodle_database  $sourcedb,
moodle_database  $targetdb,
progress_trace  $feedback = null 
)

Initiate database transfer.

Parameters
moodle_database$sourcedb
moodle_database$targetdb
progress_trace$feedback
Return values
void