MDL-30072 - Notes, Webservices - adding Webservices for notes

This commit is contained in:
Jason Fowler
2013-02-22 13:58:11 +08:00
parent f29e62cb6c
commit 34348b2b43
9 changed files with 480 additions and 45 deletions
+27
View File
@@ -673,6 +673,33 @@ $functions = array(
'capabilities'=> 'moodle/notes:manage',
),
'core_notes_delete_notes' => array(
'classname' => 'core_notes_external',
'methodname' => 'delete_notes',
'classpath' => 'notes/externallib.php',
'description' => 'Delete notes',
'type' => 'write',
'capabilities'=> 'moodle/notes:manage',
),
'core_notes_get_notes' => array(
'classname' => 'core_notes_external',
'methodname' => 'get_notes',
'classpath' => 'notes/externallib.php',
'description' => 'Get notes',
'type' => 'read',
'capabilities'=> 'moodle/notes:view',
),
'core_notes_update_notes' => array(
'classname' => 'core_notes_external',
'methodname' => 'update_notes',
'classpath' => 'notes/externallib.php',
'description' => 'Update notes',
'type' => 'write',
'capabilities'=> 'moodle/notes:manage',
),
// === webservice related functions ===
'moodle_webservice_get_siteinfo' => array(