You are here

function services_method_get in Services 6

Same name and namespace in other branches
  1. 5 services.module \services_method_get()
  2. 6.2 services.module \services_method_get()
  3. 7 services.module \services_method_get()
5 calls to services_method_get()
services_admin_browse_test in ./services_admin_browse.inc
services_admin_browse_test_submit in ./services_admin_browse.inc
services_admin_browse_test_unserialize_args in ./services_admin_browse.inc
services_method_call in ./services.module
This is the magic function through which all remote method calls must pass.
services_method_load in ./services.module
Menu wildcard loader for browsing Service methods.

File

./services.module, line 462
@author Services Dev Team

Code

function services_method_get($method_name) {
  static $method_cache;
  if (!isset($method_cache[$method_name])) {
    foreach (services_get_all() as $method) {
      if ($method_name == $method['#method']) {
        $method_cache[$method_name] = $method;
        break;
      }
    }
  }
  return $method_cache[$method_name];
}