WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase Class Reference

WikiLambda Base API util. More...

+ Inheritance diagram for MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase:
+ Collaboration diagram for MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase:

Public Member Functions

 dieWithZError ( $zerror, $code=400)
 
 setLogger (LoggerInterface $logger)
 @inheritDoc
 
 getLogger ()
 @inheritDoc
 

Protected Member Functions

 setUp ()
 
 executeFunctionCall ( $zObject, $validate)
 

Protected Attributes

OrchestratorRequest $orchestrator
 
string $orchestratorHost
 
LoggerInterface $logger
 

Detailed Description

WikiLambda Base API util.

This abstract class extends the Wikimedia's ApiBase class and provides specific additional methods.

@stable to extend

Member Function Documentation

◆ dieWithZError()

MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase::dieWithZError ( $zerror,
$code = 400 )
Parameters
ZError$zerrorThe ZError object to return to the user
int$codeHTTP error code, defaulting to 400/Bad Request
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeFunctionCall()

MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase::executeFunctionCall ( $zObject,
$validate )
protected
Parameters
ZFunctionCall | \stdClass$zObject
bool$validate
Returns
ZResponseEnvelope
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: