Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/assignment/db/access.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Capability definitions for the assignment module.
00004 //
00005 // The capabilities are loaded into the database table when the module is
00006 // installed or updated. Whenever the capability definitions are updated,
00007 // the module version number should be bumped up.
00008 //
00009 // The system has four possible values for a capability:
00010 // CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
00011 //
00012 //
00013 // CAPABILITY NAMING CONVENTION
00014 //
00015 // It is important that capability names are unique. The naming convention
00016 // for capabilities that are specific to modules and blocks is as follows:
00017 //   [mod/block]/<plugin_name>:<capabilityname>
00018 //
00019 // component_name should be the same as the directory name of the mod or block.
00020 //
00021 // Core moodle capabilities are defined thus:
00022 //    moodle/<capabilityclass>:<capabilityname>
00023 //
00024 // Examples: mod/forum:viewpost
00025 //           block/recent_activity:view
00026 //           moodle/site:deleteuser
00027 //
00028 // The variable name for the capability definitions array is $capabilities
00029 
00030 
00031 $capabilities = array(
00032 
00033     'mod/assignment:view' => array(
00034 
00035         'captype' => 'read',
00036         'contextlevel' => CONTEXT_MODULE,
00037         'archetypes' => array(
00038             'guest' => CAP_ALLOW,
00039             'student' => CAP_ALLOW,
00040             'teacher' => CAP_ALLOW,
00041             'editingteacher' => CAP_ALLOW,
00042             'manager' => CAP_ALLOW
00043         )
00044     ),
00045 
00046     'mod/assignment:submit' => array(
00047 
00048         'captype' => 'write',
00049         'contextlevel' => CONTEXT_MODULE,
00050         'archetypes' => array(
00051             'student' => CAP_ALLOW
00052         )
00053     ),
00054 
00055     'mod/assignment:grade' => array(
00056         'riskbitmask' => RISK_XSS,
00057 
00058         'captype' => 'write',
00059         'contextlevel' => CONTEXT_MODULE,
00060         'archetypes' => array(
00061             'teacher' => CAP_ALLOW,
00062             'editingteacher' => CAP_ALLOW,
00063             'manager' => CAP_ALLOW
00064         )
00065     ),
00066 
00067     'mod/assignment:exportownsubmission' => array(
00068 
00069         'captype' => 'read',
00070         'contextlevel' => CONTEXT_MODULE,
00071         'archetypes' => array(
00072             'teacher' => CAP_ALLOW,
00073             'editingteacher' => CAP_ALLOW,
00074             'manager' => CAP_ALLOW,
00075             'student' => CAP_ALLOW,
00076         )
00077     ),
00078 );
00079 
00080 
 All Data Structures Namespaces Files Functions Variables Enumerations