Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/lti/db/access.php
Go to the documentation of this file.
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 
00032 defined('MOODLE_INTERNAL') || die;
00033 
00034 $capabilities = array(
00035 
00036     'mod/lti:view' => array(
00037         'captype' => 'read',
00038         'contextlevel' => CONTEXT_MODULE,
00039         'archetypes' => array(
00040             'guest' => CAP_ALLOW,
00041             'student' => CAP_ALLOW,
00042             'teacher' => CAP_ALLOW,
00043             'editingteacher' => CAP_ALLOW,
00044             'manager' => CAP_ALLOW
00045         )
00046     ),
00047 
00048     'mod/lti:grade' => array(
00049         'riskbitmask' => RISK_XSS,
00050 
00051         'captype' => 'write',
00052         'contextlevel' => CONTEXT_MODULE,
00053         'archetypes' => array(
00054             'teacher' => CAP_ALLOW,
00055             'editingteacher' => CAP_ALLOW,
00056             'manager' => CAP_ALLOW
00057         )
00058     ),
00059 
00060     'mod/lti:manage' => array(
00061         'riskbitmask' => RISK_XSS,
00062 
00063         'captype' => 'write',
00064         'contextlevel' => CONTEXT_MODULE,
00065         'archetypes' => array(
00066             'teacher' => CAP_ALLOW,
00067             'editingteacher' => CAP_ALLOW,
00068             'manager' => CAP_ALLOW
00069         )
00070     ),
00071 
00072     'mod/lti:addcoursetool' => array(
00073         'captype' => 'write',
00074         'contextlevel' => CONTEXT_COURSE,
00075         'archetypes' => array(
00076             'teacher' => CAP_ALLOW,
00077             'editingteacher' => CAP_ALLOW,
00078             'manager' => CAP_ALLOW
00079         )
00080     ),
00081 
00082     'mod/lti:requesttooladd' => array(
00083         'captype' => 'write',
00084         'contextlevel' => CONTEXT_COURSE,
00085         'archetypes' => array(
00086             'teacher' => CAP_ALLOW,
00087             'editingteacher' => CAP_ALLOW,
00088             'manager' => CAP_ALLOW
00089         )
00090     )
00091 );
 All Data Structures Namespaces Files Functions Variables Enumerations