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

Go to the source code of this file.

Namespaces

namespace  workshopform

Functions

 workshopform_comments_upgrade_legacy ()
 workshopform_comments_upgrade_element (stdclass $old, $newworkshopid)
 workshopform_comments_upgrade_grade (stdclass $old, $newassessmentid, stdclass $newdimensioninfo)
 workshopform_comments_upgrade_legacy_needed ()

Function Documentation

workshopform_comments_upgrade_element ( stdclass $  old,
newworkshopid 
)

Transforms a given record from workshop_elements_old into an object to be saved into workshopform_comments

Parameters:
stdClass$oldlegacy record from workshop_elements_old
int$newworkshopidid of the new workshop instance that replaced the previous one
Returns:
stdclass to be saved in workshopform_comments

Definition at line 97 of file upgradelib.php.

Here is the caller graph for this function:

workshopform_comments_upgrade_grade ( stdclass $  old,
newassessmentid,
stdclass $  newdimensioninfo 
)

Transforms given grade record

Parameters:
stdClass$old
int$newassessmentid
stdClass$newdimensioninfo
Returns:
stdclass

Definition at line 114 of file upgradelib.php.

Here is the caller graph for this function:

Check if there are some legacy workshop 1.x data to be migrated and upgrade them

This must be called after workshop core migration has finished so that all assessments are already upgraded and tables are correctly renamed.

Definition at line 33 of file upgradelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Check if the the migration from legacy workshop 1.9 is needed

Returns:
bool

Definition at line 130 of file upgradelib.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations