コード例 #1
0
 public static function drop_restore_temp_tables($backupid)
 {
     global $DB;
     $dbman = $DB->get_manager();
     // We are going to use database_manager services
     $targettablenames = array('backup_ids_temp', 'backup_files_temp');
     foreach ($targettablenames as $targettablename) {
         $table = new xmldb_table($targettablename);
         $dbman->drop_table($table);
         // And drop it
     }
     // Invalidate the backup_ids caches.
     restore_dbops::reset_backup_ids_cached();
 }