Prado\Web\Services\TJsonRpcProtocol::callApiMethod PHP Метод

callApiMethod() публичный Метод

Calls the callback handler for the given method Overrides parent implementation to correctly handle error codes
public callApiMethod ( string $methodName, array $parameters ) : mixed
$methodName string of the RPC
$parameters array for the callback handler as provided by the client
Результат mixed whatever the callback handler returns
    public function callApiMethod($methodName, $parameters)
    {
        if (!isset($this->rpcMethods[$methodName])) {
            throw new TRpcException('Method "' . $methodName . '" not found', '-32601');
        }
        return call_user_func_array($this->rpcMethods[$methodName]['method'], $parameters);
    }