"MDL-20648, merlot.org repository plugin, support basic search only"

This commit is contained in:
Dongsheng Cai 2009-11-13 08:43:18 +00:00
parent 1e252026e8
commit 9b1ebc5dc0
6 changed files with 195 additions and 0 deletions

15
repository/merlot/db/access.php Executable file
View file

@ -0,0 +1,15 @@
<?php
$capabilities = array(
'repository/merlot:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
);

View file

@ -0,0 +1,20 @@
<?php
function xmldb_repository_merlot_upgrade($oldversion) {
global $CFG, $DB;
$dbman = $DB->get_manager();
$result = true;
/// And upgrade begins here. For each one, you'll need one
/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php
/// $result = result of database_manager methods
/// }
return $result;
}