Webservice update data created
This commit is contained in:
parent
da14cf4623
commit
ae94d42fdf
9 changed files with 990 additions and 624 deletions
|
|
@ -28,6 +28,16 @@ defined('MOODLE_INTERNAL') || die();
|
|||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/timetable:update' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_USER,
|
||||
'archetypes' => array(
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
),
|
||||
|
||||
'mod/timetable:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,15 @@ $functions = array(
|
|||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
'capabilities' => array(), // capabilities required by the function.
|
||||
),
|
||||
'mod_timetable_update' => array(
|
||||
'classname' => 'mod_timetable_external',
|
||||
'methodname' => 'update',
|
||||
'classpath' => 'mod/timetable/externallib.php',
|
||||
'description' => 'update timetable data',
|
||||
'type' => 'write',
|
||||
'ajax' => false,
|
||||
'capabilities' => array(), // capabilities required by the function.
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue