system.methodHelp
1.2
string string
array array
Return the help text (such as this) associated with the specified method(s).
If a STRING parameter specifying the method name is passed, the return value
will be a STRING. If multiple methods are queried by passing an ARRAY of
STRING values, then the return value will be an ARRAY of STRING values, as
well.
{method_name};
my @list = (ref $arg) ? @$arg : ($arg);
my @results = ();
my $method;
for (@list)
{
if (ref($method = $srv->get_method($_)) and (! $method->hidden))
{
push(@results, $method->help() || '');
}
else
{
return RPC::XML::fault->new(302, "$name: Method $_ unknown");
}
}
return (ref $arg) ? \@results : $results[0];
}
__END__
]]>