You are here

function services_set_server_info in Services 7.3

Same name and namespace in other branches
  1. 5 services.module \services_set_server_info()
  2. 6.3 services.runtime.inc \services_set_server_info()
  3. 6 services.module \services_set_server_info()
  4. 6.2 services.module \services_set_server_info()
  5. 7 services.module \services_set_server_info()

Sets a server info value

Parameters

string $key: The key of the server info value.

mixed $value: The value.

Return value

void

3 calls to services_set_server_info()
RESTServer::handle in servers/rest_server/includes/RESTServer.inc
Handles the call to the REST server
_services_controller_execute_preserve_user_switch_anonymous in includes/services.runtime.inc
As authentication methods should authenticate user themselves changing global $user variable we preserve incoming session authenticated user and his session so changes made by authentication do not interfere.
_services_oauth_authenticate_call in auth/services_oauth/services_oauth.inc
Authenticates a call using OAuth to verify the request.

File

includes/services.runtime.inc, line 304
Contains functions that only are necessary when a service call is made. This has broken out so that this code isn't loaded for every page load.

Code

function services_set_server_info($key, $value) {
  $info = services_server_info_object();
  $info->{$key} = $value;
}