X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSoapServer.php;h=46c24b98b65f81af0e84647682bcdefc5cd96546;hb=32815eac44c3a63051b4f3d1ec2c25b88f33c245;hp=43e73183ef0fdfa13419b27fe11928f2ac692418;hpb=6b83d5bdd0f2ca546924feae6aa42aeddb1d40cf;p=civicrm-core.git diff --git a/CRM/Utils/SoapServer.php b/CRM/Utils/SoapServer.php index 43e73183ef..46c24b98b6 100644 --- a/CRM/Utils/SoapServer.php +++ b/CRM/Utils/SoapServer.php @@ -1,27 +1,11 @@ verify($key); - $params = array( + $params = [ 'job_id' => $job, 'time_stamp' => date('YmdHis'), 'event_queue_id' => $queue, 'hash' => $hash, 'body' => $body, 'version' => 3, - ); + ]; $result = civicrm_api('Mailing', 'event_bounce', $params); return CRM_Utils_Array::encode_items($result); } @@ -174,14 +160,14 @@ class CRM_Utils_SoapServer { */ public function mailer_event_unsubscribe($key, $job, $queue, $hash) { $this->verify($key); - $params = array( + $params = [ 'job_id' => $job, 'time_stamp' => date('YmdHis'), 'org_unsubscribe' => 0, 'event_queue_id' => $queue, 'hash' => $hash, 'version' => 3, - ); + ]; $result = civicrm_api('MailingGroup', 'event_unsubscribe', $params); return CRM_Utils_Array::encode_items($result); } @@ -197,14 +183,14 @@ class CRM_Utils_SoapServer { */ public function mailer_event_domain_unsubscribe($key, $job, $queue, $hash) { $this->verify($key); - $params = array( + $params = [ 'job_id' => $job, 'time_stamp' => date('YmdHis'), 'org_unsubscribe' => 1, 'event_queue_id' => $queue, 'hash' => $hash, 'version' => 3, - ); + ]; $result = civicrm_api('MailingGroup', 'event_domain_unsubscribe', $params); return CRM_Utils_Array::encode_items($result); } @@ -220,14 +206,14 @@ class CRM_Utils_SoapServer { */ public function mailer_event_resubscribe($key, $job, $queue, $hash) { $this->verify($key); - $params = array( + $params = [ 'job_id' => $job, 'time_stamp' => date('YmdHis'), 'org_unsubscribe' => 0, 'event_queue_id' => $queue, 'hash' => $hash, 'version' => 3, - ); + ]; $result = civicrm_api('MailingGroup', 'event_resubscribe', $params); return CRM_Utils_Array::encode_items($result); } @@ -243,11 +229,11 @@ class CRM_Utils_SoapServer { */ public function mailer_event_subscribe($key, $email, $domain, $group) { $this->verify($key); - $params = array( + $params = [ 'email' => $email, 'group_id' => $group, 'version' => 3, - ); + ]; $result = civicrm_api('MailingGroup', 'event_subscribe', $params); return CRM_Utils_Array::encode_items($result); } @@ -263,14 +249,14 @@ class CRM_Utils_SoapServer { */ public function mailer_event_confirm($key, $contact, $subscribe, $hash) { $this->verify($key); - $params = array( + $params = [ 'contact_id' => $contact, 'subscribe_id' => $subscribe, 'time_stamp' => date('YmdHis'), 'event_subscribe_id' => $subscribe, 'hash' => $hash, 'version' => 3, - ); + ]; $result = civicrm_api('Mailing', 'event_confirm', $params); return CRM_Utils_Array::encode_items($result); } @@ -290,7 +276,7 @@ class CRM_Utils_SoapServer { */ public function mailer_event_reply($key, $job, $queue, $hash, $bodyTxt, $rt, $bodyHTML = NULL, $fullEmail = NULL) { $this->verify($key); - $params = array( + $params = [ 'job_id' => $job, 'event_queue_id' => $queue, 'hash' => $hash, @@ -300,7 +286,7 @@ class CRM_Utils_SoapServer { 'fullEmail' => $fullEmail, 'time_stamp' => date('YmdHis'), 'version' => 3, - ); + ]; $result = civicrm_api('Mailing', 'event_reply', $params); return CRM_Utils_Array::encode_items($result); } @@ -317,13 +303,13 @@ class CRM_Utils_SoapServer { */ public function mailer_event_forward($key, $job, $queue, $hash, $email) { $this->verify($key); - $params = array( + $params = [ 'job_id' => $job, 'event_queue_id' => $queue, 'hash' => $hash, 'email' => $email, 'version' => 3, - ); + ]; $result = civicrm_api('Mailing', 'event_forward', $params); return CRM_Utils_Array::encode_items($result); }