You are here

function services_endpoint_load in Services 6.3

Same name and namespace in other branches
  1. 7.3 services.module \services_endpoint_load()

Load a single endpoint.

Parameters

string $name: The name of the endpoint.

Return value

stdClass The endpoint configuration.

10 calls to services_endpoint_load()
RESTServer::handle in servers/rest_server/includes/RESTServer.inc
Handles the call to the REST server
ServicesEndpointTests::saveNewEndpoint in tests/functional/ServicesEndpointTests.test
ServicesParserTests::setUp in tests/functional/ServicesParserTests.test
Implementation of setUp().
ServicesWebTestCase::saveNewEndpoint in tests/functional/ServicesWebTestCase.php
services_controller_execute in ./services.runtime.inc
Performs access checks and executes a services controller. This method is called by server implementations.

... See full list

File

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

Code

function services_endpoint_load($name) {
  ctools_include('export');
  $result = ctools_export_load_object('services_endpoint', 'names', array(
    $name,
  ));
  if (isset($result[$name])) {
    return $result[$name];
  }
  return FALSE;
}