Moodle  2.2.1
http://www.collinsharper.com
backup_controller_dbops Class Reference
Inheritance diagram for backup_controller_dbops:
Collaboration diagram for backup_controller_dbops:

Static Public Member Functions

static save_controller ($controller, $checksum)
static load_controller ($backupid)
static create_backup_ids_temp_table ($backupid)
static create_temptable_from_real_table ($backupid, $realtablename, $temptablename)
static drop_backup_ids_temp_table ($backupid)
static get_courseid_from_type_id ($type, $id)
static get_moodle_backup_information ($backupid)
static apply_version_and_release ()
static backup_includes_mnet_remote_users ($backupid)
static backup_get_original_course_info ($courseid)
static apply_config_defaults (backup_controller $controller)

Detailed Description

Non instantiable helper class providing DB support to the

This class contains various static methods available for all the DB operations performed by the backup_controller class

TODO: Finish phpdocs

Definition at line 33 of file backup_controller_dbops.class.php.


Member Function Documentation

static apply_config_defaults ( backup_controller controller) [static]

Sets the default values for the settings in a backup operation

Based on the mode of the backup it will delegate the process to other methods like apply_general_config_defaults ... to get proper defaults loaded

Parameters:
backup_controller$controller

Definition at line 413 of file backup_controller_dbops.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static apply_version_and_release ( ) [static]

Update CFG->backup_version and CFG->backup_release if change in version is detected.

Definition at line 369 of file backup_controller_dbops.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static backup_get_original_course_info ( courseid) [static]

Given the courseid, return some course related information we want to transport

Parameters:
int$coursethe id of the course this backup belongs to

Definition at line 399 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static backup_includes_mnet_remote_users ( backupid) [static]

Given the backupid, detect if the backup includes "mnet" remote users or no

Definition at line 381 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static create_backup_ids_temp_table ( backupid) [static]

Definition at line 87 of file backup_controller_dbops.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static create_temptable_from_real_table ( backupid,
realtablename,
temptablename 
) [static]

Given one "real" tablename, create one temp table suitable for be used in backup/restore operations

Definition at line 94 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static drop_backup_ids_temp_table ( backupid) [static]

Definition at line 144 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static get_courseid_from_type_id ( type,
id 
) [static]

Given one type and id from controller, return the corresponding courseid

Definition at line 156 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static get_moodle_backup_information ( backupid) [static]

Get details information for main moodle_backup.xml file, extracting it from the specified controller

Definition at line 303 of file backup_controller_dbops.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static load_controller ( backupid) [static]

Definition at line 74 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:

static save_controller ( controller,
checksum 
) [static]

Definition at line 35 of file backup_controller_dbops.class.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations