You are here

function services_get_server_info in Services 6.2

Same name and namespace in other branches
  1. 5 services.module \services_get_server_info()
  2. 6.3 services.runtime.inc \services_get_server_info()
  3. 6 services.module \services_get_server_info()
  4. 7.3 includes/services.runtime.inc \services_get_server_info()
  5. 7 services.module \services_get_server_info()

Returns or sets the server info object.

Parameters

object $server_info: Optional. Pass an object to set as the server info object. Omit to just retrieve the server info.

Return value

object Server info object.

3 calls to services_get_server_info()
services_error in ./services.module
Prepare an error message to return to the server.
services_method_call in ./services.module
Invokes a services method.
services_set_server_info in ./services.module
Sets information about which server implementation is used for the call.

File

./services.module, line 217
Provides a generic but powerful API for exposing web services.

Code

function services_get_server_info($server_info = NULL) {
  static $info;
  if (!$info && $server_info) {
    $info = $server_info;
  }
  return $info;
}