PHP Interface Fxmlrpc\MulticallBuilderInterface

Afficher le fichier Open project: lstrojny/fxmlrpc Interface Usage Examples

Méthodes publiques

Méthode Description
addCall ( string $methodName, array $params = [], callable $onSuccess = null, callable $onError = null ) : fxmlrpc\MulticallBuilderInterface Add a call to the end of the multicall stack
execute ( ) : array Send the multicall request to the server
onError ( callable $handler ) : fxmlrpc\MulticallBuilderInterface Register a error handler applicable to all multicall responses
onSuccess ( callable $handler ) : fxmlrpc\MulticallBuilderInterface Register a success handler applicable to all multicall responses

Method Details

addCall() public méthode

Add a call to the end of the multicall stack
public addCall ( string $methodName, array $params = [], callable $onSuccess = null, callable $onError = null ) : fxmlrpc\MulticallBuilderInterface
$methodName string
$params array
$onSuccess callable
$onError callable
Résultat fxmlrpc\MulticallBuilderInterface

execute() public méthode

Send the multicall request to the server
public execute ( ) : array
Résultat array

onError() public méthode

Register a error handler applicable to all multicall responses
public onError ( callable $handler ) : fxmlrpc\MulticallBuilderInterface
$handler callable
Résultat fxmlrpc\MulticallBuilderInterface

onSuccess() public méthode

Register a success handler applicable to all multicall responses
public onSuccess ( callable $handler ) : fxmlrpc\MulticallBuilderInterface
$handler callable
Résultat fxmlrpc\MulticallBuilderInterface