[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/backup/ -> restore_form.html (summary)

if user has manageactivities in any course and we are not restoring from within SITEID existingcoursedeleting existingcourseadding else we show currentcoursedeleting currentcourse if user has course:create in any category, we show newcourse

File Size: 787 lines (34 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  restore_samerole()
  restore_is_samerole()

Functions
Functions that are not part of a class:

restore_samerole($roleid, $rolefromxml)   X-Ref
Look for a role in the database with exactly the same definition as the one in the backup file.

param: integer $roleid the id that the role in the backup files had on the old server.
param: object $role the rest of the definition of the role from the backup file.

restore_is_samerole($testroleid, $rolefromxml)   X-Ref
Compare a role in the database with one loaded from the backup file, and determine whether
they have identical permissions for each capability.

param: integer $testroleid the id of the role from the database to test against.
param: object $rolefromxml the role definition loaded from the backup file.
return: boolean true if the two roles are identical.



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7