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

Protected Member Functions

 define_execution ()

Detailed Description

Execution step that, *conditionally* (if there isn't preloaded information), will load all the needed roles to backup_temp_ids. They will be stored with "role" itemname. Also it will perform one automatic mapping to roles existing in the target site, based in permissions of the user performing the restore, archetypes and other bits. At the end, each original role will have its associated target role or 0 if it's going to be skipped. Note we wrap everything over one restore_dbops method, as far as the same stuff is going to be also executed by restore prechecks

Definition at line 618 of file restore_stepslib.php.


Member Function Documentation

define_execution ( ) [protected]

Function that will contain all the code to be executed

Reimplemented from restore_execution_step.

Definition at line 620 of file restore_stepslib.php.

Here is the call graph for this function:


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