MediaWiki master
|
DeferredUpdates helper class for tracking DeferrableUpdate::doUpdate() nesting levels caused by nested calls to DeferredUpdates::doUpdates() More...
Inherited by MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Public Member Functions | |
__construct () | |
allowOpportunisticUpdates () | |
Whether DeferredUpdates::addUpdate() may run the update right away. | |
ascend () | |
Pop the innermost scope from the stack. | |
current () | |
descend ( $activeStage, DeferrableUpdate $update) | |
Make a new child scope, push it onto the stack, and return it. | |
getRecursiveDepth () | |
Get the depth of the scope stack below the root scope. | |
onRunUpdateEnd (DeferrableUpdate $update) | |
onRunUpdateFailed (DeferrableUpdate $update) | |
onRunUpdateStart (DeferrableUpdate $update) | |
queueDataUpdate (EnqueueableDataUpdate $update) | |
Queue an EnqueueableDataUpdate as a job instead. | |
DeferredUpdates helper class for tracking DeferrableUpdate::doUpdate() nesting levels caused by nested calls to DeferredUpdates::doUpdates()
Definition at line 32 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::__construct | ( | ) |
Definition at line 36 of file DeferredUpdatesScopeStack.php.
References MediaWiki\Deferred\DeferredUpdatesScope\newRootScope().
MediaWiki\Deferred\DeferredUpdatesScopeStack::allowOpportunisticUpdates | ( | ) |
Whether DeferredUpdates::addUpdate() may run the update right away.
Reimplemented in MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Definition at line 88 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::ascend | ( | ) |
Pop the innermost scope from the stack.
Definition at line 66 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::current | ( | ) |
Definition at line 43 of file DeferredUpdatesScopeStack.php.
Referenced by MediaWiki\Deferred\DeferredUpdatesScopeStack\descend().
MediaWiki\Deferred\DeferredUpdatesScopeStack::descend | ( | $activeStage, | |
DeferrableUpdate | $update ) |
Make a new child scope, push it onto the stack, and return it.
int | $activeStage | The in-progress stage; one of DeferredUpdates::STAGES |
DeferrableUpdate | $update | The deferred update that owns this scope |
Definition at line 54 of file DeferredUpdatesScopeStack.php.
References MediaWiki\Deferred\DeferredUpdatesScopeStack\current(), and MediaWiki\Deferred\DeferredUpdatesScope\newChildScope().
MediaWiki\Deferred\DeferredUpdatesScopeStack::getRecursiveDepth | ( | ) |
Get the depth of the scope stack below the root scope.
Definition at line 79 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::onRunUpdateEnd | ( | DeferrableUpdate | $update | ) |
DeferrableUpdate | $update |
Reimplemented in MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Definition at line 114 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::onRunUpdateFailed | ( | DeferrableUpdate | $update | ) |
DeferrableUpdate | $update |
Reimplemented in MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Definition at line 122 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::onRunUpdateStart | ( | DeferrableUpdate | $update | ) |
DeferrableUpdate | $update |
Reimplemented in MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Definition at line 106 of file DeferredUpdatesScopeStack.php.
MediaWiki\Deferred\DeferredUpdatesScopeStack::queueDataUpdate | ( | EnqueueableDataUpdate | $update | ) |
Queue an EnqueueableDataUpdate as a job instead.
EnqueueableDataUpdate | $update |
Reimplemented in MediaWiki\Deferred\DeferredUpdatesScopeMediaWikiStack.
Definition at line 99 of file DeferredUpdatesScopeStack.php.