|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Functions | |
| resource_20_migrate () | |
| resource_20_prepare_migration () | |
| resource_migrate_to_module ($modname, $candidate, $newinstance) | |
Migrate resource module data from 1.9 resource_old table to new resource table
Definition at line 33 of file upgradelib.php.


This function creates resource_old table and copies all data from resource table, this functions has to be called from all modules that are successors of old resource module types.
Definition at line 192 of file upgradelib.php.

| resource_migrate_to_module | ( | $ | modname, |
| $ | candidate, | ||
| $ | newinstance | ||
| ) |
Migrate old resource type to new module, updates all related info, keeps the context id.
| string | $modname | name of new module |
| object | $candidate | old instance from resource_old |
| object | $newinstance | new module instance to be inserted into db |
Definition at line 270 of file upgradelib.php.

