X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSoapServer.php;h=5ab5672c34461641027e59a451786cfe0dbbc53e;hb=b7a8da9aafe343721c7a4f3805cef32add4259db;hp=5d92a210919c907132241a5869f3feb098b1195a;hpb=3524be8440a54d4da42ee0d768ea0a8d9c309395;p=civicrm-core.git diff --git a/CRM/Utils/SoapServer.php b/CRM/Utils/SoapServer.php index 5d92a21091..5ab5672c34 100644 --- a/CRM/Utils/SoapServer.php +++ b/CRM/Utils/SoapServer.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -29,7 +29,7 @@ * This class handles all SOAP client requests. * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 */ class CRM_Utils_SoapServer { @@ -157,7 +157,8 @@ class CRM_Utils_SoapServer { 'body' => $body, 'version' => 3, ); - return civicrm_api('Mailing', 'event_bounce', $params); + $result = civicrm_api('Mailing', 'event_bounce', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -181,7 +182,8 @@ class CRM_Utils_SoapServer { 'hash' => $hash, 'version' => 3, ); - return civicrm_api('MailingGroup', 'event_unsubscribe', $params); + $result = civicrm_api('MailingGroup', 'event_unsubscribe', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -203,7 +205,8 @@ class CRM_Utils_SoapServer { 'hash' => $hash, 'version' => 3, ); - return civicrm_api('MailingGroup', 'event_domain_unsubscribe', $params); + $result = civicrm_api('MailingGroup', 'event_domain_unsubscribe', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -225,7 +228,8 @@ class CRM_Utils_SoapServer { 'hash' => $hash, 'version' => 3, ); - return civicrm_api('MailingGroup', 'event_resubscribe', $params); + $result = civicrm_api('MailingGroup', 'event_resubscribe', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -244,7 +248,8 @@ class CRM_Utils_SoapServer { 'group_id' => $group, 'version' => 3, ); - return civicrm_api('MailingGroup', 'event_subscribe', $params); + $result = civicrm_api('MailingGroup', 'event_subscribe', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -266,7 +271,8 @@ class CRM_Utils_SoapServer { 'hash' => $hash, 'version' => 3, ); - return civicrm_api('Mailing', 'event_confirm', $params); + $result = civicrm_api('Mailing', 'event_confirm', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -295,7 +301,8 @@ class CRM_Utils_SoapServer { 'time_stamp' => date('YmdHis'), 'version' => 3, ); - return civicrm_api('Mailing', 'event_reply', $params); + $result = civicrm_api('Mailing', 'event_reply', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -317,7 +324,8 @@ class CRM_Utils_SoapServer { 'email' => $email, 'version' => 3, ); - return civicrm_api('Mailing', 'event_forward', $params); + $result = civicrm_api('Mailing', 'event_forward', $params); + return CRM_Utils_Array::encode_items($result); } /** @@ -330,7 +338,8 @@ class CRM_Utils_SoapServer { public function get_contact($key, $params) { $this->verify($key); $params['version'] = 3; - return civicrm_api('contact', 'get', $params); + $result = civicrm_api('contact', 'get', $params); + return CRM_Utils_Array::encode_items($result); } }