WikiLambda
MediaWiki WikiLambda extension
|
WikiLambda Base API util. More...
Public Member Functions | |
execute () | |
@inheritDoc | |
setLogger (LoggerInterface $logger) | |
@inheritDoc | |
getLogger () | |
@inheritDoc | |
submitMetricsEvent ( $action, $eventData) | |
Static Public Member Functions | |
static | dieWithZError ( $zerror, $code=400) |
Protected Member Functions | |
setUp () | |
run () | |
@inheritDoc | |
executeFunctionCall ( $zObject, $validate) | |
Protected Attributes | |
OrchestratorRequest | $orchestrator |
string | $orchestratorHost |
LoggerInterface | $logger |
WikiLambda Base API util.
This abstract class extends the Wikimedia's ApiBase class and provides specific additional methods.
@stable to extend
|
static |
ZError | $zerror | The ZError object to return to the user |
int | $code | HTTP error code, defaulting to 400/Bad Request |
|
protected |
ZFunctionCall | \stdClass | $zObject | |
bool | $validate |
|
protected |
@inheritDoc
Reimplemented in MediaWiki\Extension\WikiLambda\ActionAPI\ApiFunctionCall, MediaWiki\Extension\WikiLambda\ActionAPI\ApiPerformTest, MediaWiki\Extension\WikiLambda\ActionAPI\ApiSupportedProgrammingLanguages, MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectEditor, MediaWiki\Extension\WikiLambda\ActionAPI\ApiZObjectFetcher, and MediaWiki\Extension\WikiLambda\PublicAPI\PublicApiRun.
MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase::submitMetricsEvent | ( | $action, | |
$eventData ) |
string | $action | An arbitrary string describing what's being recorded |
array | $eventData | Key-value pairs stating various characteristics of the action; these must conform to the specified schema. |