You are here

function clients_connection_base::callMethodArray in Web Service Clients 7.3

Same name and namespace in other branches
  1. 6.2 clients.inc \clients_connection_base::callMethodArray()
  2. 7.2 clients.inc \clients_connection_base::callMethodArray()

Call a remote method with an array of parameters.

This is intended for internal use from callMethod() and clients_connection_call(). If you need to call a method on given connection object, use callMethod which has a nicer form.

Subclasses do not necessarily have to override this method if their connection type does not make sense with this.

Parameters

$method: The name of the remote method to call.

$method_params: An array of parameters to passed to the remote method.

Return value

Whatever is returned from the remote site.

Throws

Exception on error from the remote site. It's up to subclasses to implement this, as the test for an error and the way to get information about it varies according to service type.

1 call to clients_connection_base::callMethodArray()
clients_connection_base::callMethod in includes/clients.entity.inc
Call a remote method.
4 methods override clients_connection_base::callMethodArray()
clients_connection_clients_dummy::callMethodArray in tests/clients_test/clients_connection_clients_dummy.inc
Call a remote method.
clients_connection_drupal_services_6_2::callMethodArray in connections/clients_drupal/clients_drupal.inc
Call a remote method with an array of parameters.
clients_connection_drupal_services_7_3::callMethodArray in connections/clients_drupal/clients_drupal.inc
Call a remote method.
clients_connection_drupal_services_rest_7::callMethodArray in connections/clients_drupal_rest/clients_drupal_rest.inc
API function to request a remote resource.

File

includes/clients.entity.inc, line 246
Provides base classes for clients handler entities.

Class

clients_connection_base
Base class for client connections.

Code

function callMethodArray($method, $method_params = array()) {

  // Up to subclasses to override this to do something.
}