function services_method_get in Services 6.2
Same name and namespace in other branches
- 5 services.module \services_method_get()
- 6 services.module \services_method_get()
- 7 services.module \services_method_get()
Get the definition of a method.
Parameters
string $method_name: The name of the method to get the definition for.
Return value
array The method definition.
5 calls to services_method_get()
- services_admin_browse_test in ./
services_admin_browse.inc - Build the form used for testing a service in the browser
- services_admin_browse_test_submit in ./
services_admin_browse.inc - Submit callback for services_admin_browse_test().
- services_admin_browse_test_unserialize_args in ./
services_admin_browse.inc - services_method_call in ./
services.module - Invokes a services method.
- services_method_load in ./
services.module - Menu wildcard loader for browsing Service methods.
File
- ./
services.module, line 773 - Provides a generic but powerful API for exposing web services.
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];
}