function services_client_connection_get in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/services_client_connection.module \services_client_connection_get()
Create new connection client
Parameters
$name:
4 calls to services_client_connection_get()
- services_client_make_node_call in ./
services_client.module - Make the actual node create/update call for each connection and task
- services_client_make_node_delete_call in ./
services_client.module - Delete node on remote site.
- services_client_make_submission_to_node_call in ./
services_client.module - Make the actual node create/update call for each connection and task
- services_client_make_user_call in ./
services_client.module - Make the actual user create/update call for each connection and task
File
- services_client_connection/
services_client_connection.module, line 194 - Services Client Connection allows to configure different connections via UI and store them as exportable configuration. API client should be able to communicate with different versions of remote Services module via unified API client.
Code
function services_client_connection_get($name) {
$connection = services_client_connection_load($name);
if (!$connection) {
throw new Exception(t('Specified connection is not existing.'));
}
$client = new ServicesClientConnection($connection);
return $client;
}