mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-51648 cbe: Add a user competency plan summary page (allows grading)
This commit is contained in:
parent
1ab69549ad
commit
3c659fc202
25 changed files with 1166 additions and 13 deletions
|
@ -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
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue