Go to the source code of this file.
Enumerations |
| enum | RESTORETO_CURRENT_DELETING |
| enum | RESTORETO_CURRENT_ADDING |
| enum | RESTORETO_NEW_COURSE |
| enum | RESTORETO_EXISTING_DELETING |
| enum | RESTORETO_EXISTING_ADDING |
Functions |
| | backup_set_config ($name, $value) |
| | backup_get_config () |
| | backup_delete_old_data () |
| | backup_delete_old_dirs ($delete_from) |
| | check_and_create_backup_dir ($backup_unique_code) |
| | delete_dir_contents ($dir, $excludeddir="") |
| | clear_backup_dir ($backup_unique_code) |
| | get_module_type ($courseid, $moduleid) |
| | list_directories ($rootdir) |
| | list_directories_and_files ($rootdir) |
| | clean_temp_data ($preferences) |
| | backup_copy_file ($from_file, $to_file, $log_clam=false) |
| | backup_copy_dir ($from_file, $to_file) |
| | backup_is_same_site (&$restore) |
| | Ends copy file/dirs functions.
|
| | backup_putid ($backup_unique_code, $table, $old_id, $new_id, $info="") |
| | backup_delid ($backup_unique_code, $table, $old_id) |
| | backup_getid ($backup_unique_code, $table, $old_id) |
| | backup_todb ($data) |
| | backup_required_functions ($justcheck=false) |
| | backup_flush ($n=0, $time=false) |
| | backup_data2file ($file, &$data) |
| | backup_file2data ($file, &$data) |
Enumeration Type Documentation
Function Documentation
Ends copy file/dirs functions.
Are we restoring a backup that was made on the same site that we are restoring to? This relies on some information that was only added to backup files in January 2009. For older backup files, fall back to guessing based on wwwroot. MDL-16614 explains when this guess could give the wrong answer.
- Returns:
- boolean true if the backup was made on the same site we are restoring to.
Definition at line 317 of file lib.php.
| backup_putid |
( |
$ |
backup_unique_code, |
|
|
$ |
table, |
|
|
$ |
old_id, |
|
|
$ |
new_id, |
|
|
$ |
info = "" |
|
) |
| |