function services_set_server_info in Services 6.3
Same name and namespace in other branches
- 5 services.module \services_set_server_info()
- 6 services.module \services_set_server_info()
- 6.2 services.module \services_set_server_info()
- 7.3 includes/services.runtime.inc \services_set_server_info()
- 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 in ./
services.runtime.inc - Performs access checks and executes a services controller. This method is called by server implementations.
- _services_oauth_authenticate_call in auth/
services_oauth/ services_oauth.inc - Authenticates a call using OAuth to verify the request.
File
- ./
services.runtime.inc, line 276 - 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;
}