Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/backup/lib.php File Reference

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

Definition at line 7 of file lib.php.

Definition at line 6 of file lib.php.

Definition at line 10 of file lib.php.

Definition at line 9 of file lib.php.

Definition at line 8 of file lib.php.


Function Documentation

backup_copy_dir ( from_file,
to_file 
)

Definition at line 286 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

backup_copy_file ( from_file,
to_file,
log_clam = false 
)

Definition at line 260 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

backup_data2file ( file,
&$  data 
)

Definition at line 468 of file lib.php.

Here is the caller graph for this function:

Definition at line 27 of file lib.php.

Here is the call graph for this function:

backup_delete_old_dirs ( delete_from)

Definition at line 51 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

backup_delid ( backup_unique_code,
table,
old_id 
)

Definition at line 378 of file lib.php.

Here is the caller graph for this function:

backup_file2data ( file,
&$  data 
)

Definition at line 481 of file lib.php.

Here is the caller graph for this function:

backup_flush ( n = 0,
time = false 
)

Definition at line 453 of file lib.php.

Here is the caller graph for this function:

Definition at line 20 of file lib.php.

Here is the call graph for this function:

backup_getid ( backup_unique_code,
table,
old_id 
)

Definition at line 386 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

backup_is_same_site ( &$  restore)

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.

Here is the call graph for this function:

backup_putid ( backup_unique_code,
table,
old_id,
new_id,
info = "" 
)

Definition at line 333 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

backup_required_functions ( justcheck = false)

Definition at line 438 of file lib.php.

Here is the call graph for this function:

backup_set_config ( name,
value 
)

Definition at line 15 of file lib.php.

Here is the call graph for this function:

backup_todb ( data)

Definition at line 426 of file lib.php.

Here is the caller graph for this function:

check_and_create_backup_dir ( backup_unique_code)

Definition at line 81 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

clean_temp_data ( preferences)

Definition at line 228 of file lib.php.

Here is the call graph for this function:

clear_backup_dir ( backup_unique_code)

Definition at line 162 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

delete_dir_contents ( dir,
excludeddir = "" 
)

Definition at line 98 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_module_type ( courseid,
moduleid 
)

Definition at line 174 of file lib.php.

list_directories ( rootdir)

Definition at line 192 of file lib.php.

Definition at line 211 of file lib.php.

 All Data Structures Namespaces Files Functions Variables Enumerations