Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/resource/db/upgradelib.php File Reference

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)

Function Documentation

Migrate resource module data from 1.9 resource_old table to new resource table

Returns:
void

Definition at line 33 of file upgradelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Returns:
bool true if migration required, false if not

Definition at line 192 of file upgradelib.php.

Here is the caller graph for this function:

resource_migrate_to_module ( modname,
candidate,
newinstance 
)

Migrate old resource type to new module, updates all related info, keeps the context id.

Parameters:
string$modnamename of new module
object$candidateold instance from resource_old
object$newinstancenew module instance to be inserted into db
Returns:
mixed false if error, object new instance with id if success

Definition at line 270 of file upgradelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations