|
MediaWiki
master
|
This manages continuation state. More...
Public Member Functions | |
| __construct (ApiBase $module, array $allModules=[], array $generatedModules=[]) | |
| addContinueParam (ApiBase $module, $paramName, $paramValue) | |
| Set the continuation parameter for a module. More... | |
| addGeneratorContinueParam (ApiBase $module, $paramName, $paramValue) | |
| Set the continuation parameter for the generator module. More... | |
| getContinuation () | |
| Fetch continuation result data. More... | |
| getRawContinuation () | |
| Fetch raw continuation data. More... | |
| getRunModules () | |
| Get the list of modules that should actually be run. More... | |
| getSource () | |
| Get the class that created this manager. More... | |
| isGeneratorDone () | |
| Is the generator done? More... | |
| setContinuationIntoResult (ApiResult $result) | |
| Store the continuation data into the result. More... | |
Private Attributes | |
| $allModules = [] | |
| $continuationData = [] | |
| $generatedModules = [] | |
| $generatorContinuationData = [] | |
| $generatorDone = false | |
| $generatorParams = [] | |
| $source | |
This manages continuation state.
Definition at line 26 of file ApiContinuationManager.php.
| ApiContinuationManager::__construct | ( | ApiBase | $module, |
| array | $allModules = [], |
||
| array | $generatedModules = [] |
||
| ) |
| ApiBase | $module | Module starting the continuation |
| ApiBase[] | $allModules Contains ApiBase instances that will be executed | |
| array | $generatedModules | Names of modules that depend on the generator |
| UsageException |
Definition at line 44 of file ApiContinuationManager.php.
References $allModules, $generatedModules, $name, $params, $request, as, ContextSource\getRequest(), and source.
| ApiContinuationManager::addContinueParam | ( | ApiBase | $module, |
| $paramName, | |||
| $paramValue | |||
| ) |
Set the continuation parameter for a module.
| ApiBase | $module | |
| string | $paramName | |
| string | array | $paramValue |
| UnexpectedValueException |
Definition at line 124 of file ApiContinuationManager.php.
References $name, ApiBase\encodeParamName(), and ApiBase\getModuleName().
| ApiContinuationManager::addGeneratorContinueParam | ( | ApiBase | $module, |
| $paramName, | |||
| $paramValue | |||
| ) |
Set the continuation parameter for the generator module.
| ApiBase | $module | |
| string | $paramName | |
| string | array | $paramValue |
Definition at line 151 of file ApiContinuationManager.php.
References $name, ApiBase\encodeParamName(), and ApiBase\getModuleName().
| ApiContinuationManager::getContinuation | ( | ) |
Fetch continuation result data.
Definition at line 172 of file ApiContinuationManager.php.
References $continuationData, $generatorParams, and as.
Referenced by setContinuationIntoResult().
| ApiContinuationManager::getRawContinuation | ( | ) |
Fetch raw continuation data.
Definition at line 164 of file ApiContinuationManager.php.
| ApiContinuationManager::getRunModules | ( | ) |
Get the list of modules that should actually be run.
Definition at line 113 of file ApiContinuationManager.php.
| ApiContinuationManager::getSource | ( | ) |
Get the class that created this manager.
Definition at line 97 of file ApiContinuationManager.php.
References $source.
| ApiContinuationManager::isGeneratorDone | ( | ) |
Is the generator done?
Definition at line 105 of file ApiContinuationManager.php.
References $generatorDone.
| ApiContinuationManager::setContinuationIntoResult | ( | ApiResult | $result | ) |
Store the continuation data into the result.
| ApiResult | $result |
Definition at line 228 of file ApiContinuationManager.php.
References ApiResult\ADD_ON_TOP, ApiResult\addValue(), getContinuation(), list, and ApiResult\NO_SIZE_CHECK.
|
private |
Definition at line 29 of file ApiContinuationManager.php.
Referenced by __construct().
|
private |
Definition at line 32 of file ApiContinuationManager.php.
Referenced by getContinuation().
|
private |
Definition at line 30 of file ApiContinuationManager.php.
Referenced by __construct().
|
private |
Definition at line 33 of file ApiContinuationManager.php.
|
private |
Definition at line 36 of file ApiContinuationManager.php.
Referenced by isGeneratorDone().
|
private |
Definition at line 35 of file ApiContinuationManager.php.
Referenced by getContinuation().
|
private |
Definition at line 27 of file ApiContinuationManager.php.
Referenced by getSource().