/** * Execute call * * @param \Comodojo\RpcServer\Request\Parameters $params * * @return array */ public static final function execute($params) { if ($params->protocol() != RpcServer::XMLRPC) { throw new RpcException($params->errors()->get(-31000), -31000); } $boxcarred_requests = $params->get('requests'); $results = array(); foreach ($boxcarred_requests as $position => $request) { $new_parameters = new Parameters($params->capabilities(), $params->methods(), $params->errors(), $params->logger(), $params->protocol()); $results[$position] = self::singleCall($request, $new_parameters); } return $results; }
/** * Execute call * * @param \Comodojo\RpcServer\Request\Parameters $params * * @return array */ public static final function execute($params) { return $params->capabilities()->get(); }