|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 // This file is part of Moodle - http://moodle.org/ 00003 // 00004 // Moodle is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // Moodle is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00016 00025 $capabilities = array( 00026 00027 'mod/scorm:viewreport' => array( 00028 00029 'captype' => 'read', 00030 'contextlevel' => CONTEXT_MODULE, 00031 'archetypes' => array( 00032 'teacher' => CAP_ALLOW, 00033 'editingteacher' => CAP_ALLOW, 00034 'manager' => CAP_ALLOW 00035 ) 00036 ), 00037 00038 'mod/scorm:skipview' => array( 00039 00040 'captype' => 'write', 00041 'contextlevel' => CONTEXT_MODULE, 00042 'archetypes' => array( 00043 'student' => CAP_ALLOW 00044 ) 00045 ), 00046 00047 'mod/scorm:savetrack' => array( 00048 00049 'captype' => 'write', 00050 'contextlevel' => CONTEXT_MODULE, 00051 'archetypes' => array( 00052 'student' => CAP_ALLOW, 00053 'teacher' => CAP_ALLOW, 00054 'editingteacher' => CAP_ALLOW, 00055 'manager' => CAP_ALLOW 00056 ) 00057 ), 00058 00059 'mod/scorm:viewscores' => array( 00060 00061 'captype' => 'read', 00062 'contextlevel' => CONTEXT_MODULE, 00063 'archetypes' => array( 00064 'student' => CAP_ALLOW, 00065 'teacher' => CAP_ALLOW, 00066 'editingteacher' => CAP_ALLOW, 00067 'manager' => CAP_ALLOW 00068 ) 00069 ), 00070 'mod/scorm:deleteresponses' => array( 00071 00072 'captype' => 'read', 00073 'contextlevel' => CONTEXT_MODULE, 00074 'archetypes' => array( 00075 'teacher' => CAP_ALLOW, 00076 'editingteacher' => CAP_ALLOW, 00077 'manager' => CAP_ALLOW 00078 ) 00079 ), 00080 'mod/scorm:deleteownresponses' => array( 00081 00082 'captype' => 'write', 00083 'contextlevel' => CONTEXT_MODULE, 00084 'archetypes' => array() 00085 ) 00086 ); 00087