You are here

function services_server_info_object in Services 6.3

Same name and namespace in other branches
  1. 7.3 includes/services.runtime.inc \services_server_info_object()

Gets the server info object.

Parameters

bool $reset: Pass TRUE if the server info object should be reset.

Return value

object Returns the server info object.

5 calls to services_server_info_object()
services_controller_execute in ./services.runtime.inc
Performs access checks and executes a services controller. This method is called by server implementations.
services_endpoint_callback in ./services.module
Menu system page callback for server endpoints.
services_get_server_info in ./services.runtime.inc
Gets a server info value.
services_set_server_info in ./services.runtime.inc
Sets a server info value
services_set_server_info_from_array in ./services.runtime.inc
Sets multiple server info values from a associative array.

File

./services.runtime.inc, line 322
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_server_info_object($reset = FALSE) {
  static $info;
  if (!$info) {
    $info = new stdClass();
  }
  return $info;
}