public function getWebServices()
{
global $API_METHODS;
$tree = array();
foreach ($API_METHODS as $method => $info) {
$params = implode(', ', array_keys(elgg_extract('parameters', $info, [])));
if (!$params) {
$params = 'none';
}
$tree[$method] = array($info['function'], "params: {$params}", $info['call_method'], $info['require_api_auth'] ? 'API authentication required' : 'No API authentication required', $info['require_user_auth'] ? 'User authentication required' : 'No user authentication required');
}
ksort($tree);
return $tree;
}