dispatch

The Contact Form 7 - Infusionsoft Add-on dispatch function.

Description

dispatch( $client, $method, $args ); 

Parameters (3)

0. $client
The client.
1. $method
The method.
2. $args
The args.

Usage

  1. if ( !function_exists( 'dispatch' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/comment.php'; 
  3.  
  4. // The client. 
  5. $client = null; 
  6.  
  7. // The method. 
  8. $method = null; 
  9.  
  10. // The args. 
  11. $args = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = dispatch($client, $method, $args); 
  15.  

Defined (1)

The function is defined in the following location(s).

/src/xmlrpc-3.0/demo/client/comment.php  
  1. function dispatch($client, $method, $args) { 
  2. $msg=new xmlrpcmsg($method, $args); 
  3. $resp=$client->send($msg); 
  4. if (!$resp) { print "<p>IOerror ".$client->errstr."</p>"; bomb(); } 
  5. if ($resp->faultCode()) { 
  6. print "<p>There was anerror " . $resp->faultCode() . " " . 
  7. $resp->faultString() . "</p>"; 
  8. bomb(); 
  9. return php_xmlrpc_decode($resp->value());