MDL-51648 cbe: Add a user competency plan summary page (allows grading)

This commit is contained in:
Damyon Wiese 2015-12-07 14:27:44 +08:00 committed by Frederic Massart
parent 1ab69549ad
commit 3c659fc202
25 changed files with 1166 additions and 13 deletions

View file

@ -155,4 +155,19 @@ $capabilities = array(
),
'clonepermissionsfrom' => 'moodle/site:config'
),
'tool/lp:competencysuggestgrade' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE, // And CONTEXT_USER.
'archetypes' => array(
'teacher' => CAP_ALLOW
),
),
'tool/lp:competencygrade' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE, // And CONTEXT_USER.
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
),
);

View file

@ -662,5 +662,24 @@ $functions = array(
'capabilities' => 'tool/lp:userevidencemanageown',
'ajax' => true,
),
'tool_lp_grade_competency_in_plan' => array(
'classname' => 'tool_lp\external',
'methodname' => 'grade_competency_in_plan',
'classpath' => '',
'description' => 'Grade a competency from the user plan page.',
'type' => 'write',
'capabilities' => 'tool/lp:competencygrade',
'ajax' => true,
),
'tool_lp_read_user_competency_summary' => array(
'classname' => 'tool_lp\external',
'methodname' => 'read_user_competency_summary',
'classpath' => '',
'description' => 'Load a summary of a user competency.',
'type' => 'read',
'capabilities' => 'tool/lp:planview',
'ajax' => true,
),
);