Permalink
Browse files

MDL-30070 message: Web Services for contact list

  • Loading branch information...
1 parent a03330b commit d6731600c89157d8e9ac46be93bf84fdc818ec56 @FMCorz FMCorz committed Dec 13, 2012
Showing with 744 additions and 4 deletions.
  1. +1 −0 lang/en/error.php
  2. +54 −0 lib/db/services.php
  3. +383 −0 message/externallib.php
  4. +303 −1 message/tests/externallib_test.php
  5. +2 −2 user/lib.php
  6. +1 −1 version.php
View
@@ -430,6 +430,7 @@
$string['prefixtoolong'] = '<p>Error: database table prefix is too long ({$a->dbfamily})</p>
<p>The site administrator must fix this problem. Maximum length for table prefixes in {$a->dbfamily} is {$a->maxlength} characters.</p>';
$string['processingstops'] = 'Processing stops here. Remaining records ignored.';
+$string['querystringcannotbeempty'] = 'The query string cannot be empty.';
$string['redirecterrordetected'] = 'Unsupported redirect detected, script execution terminated';
$string['refoundto'] = 'Can be refunded to {$a}';
$string['refoundtoorigi'] = 'Refunded to original amount: {$a}';
View
@@ -581,6 +581,60 @@
'capabilities'=> 'moodle/site:sendmessage',
),
+ 'core_message_create_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'create_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Add contacts to the contact list',
+ 'type' => 'write',
+ 'capabilities'=> '',
+ ),
+
+ 'core_message_delete_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'delete_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Remove contacts from the contact list',
+ 'type' => 'write',
+ 'capabilities'=> '',
+ ),
+
+ 'core_message_block_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'block_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Block contacts',
+ 'type' => 'write',
+ 'capabilities'=> '',
+ ),
+
+ 'core_message_unblock_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'unblock_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Unblock contacts',
+ 'type' => 'write',
+ 'capabilities'=> '',
+ ),
+
+ 'core_message_get_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'get_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Retrieve the contact list',
+ 'type' => 'read',
+ 'capabilities'=> '',
+ ),
+
+ 'core_message_search_contacts' => array(
+ 'classname' => 'core_message_external',
+ 'methodname' => 'search_contacts',
+ 'classpath' => 'message/externallib.php',
+ 'description' => 'Search for contacts',
+ 'type' => 'read',
+ 'capabilities'=> '',
+ ),
+
// === notes related functions ===
'moodle_notes_create_notes' => array(
Oops, something went wrong.

0 comments on commit d673160

Please sign in to comment.