Wikibase
MediaWiki Wikibase extension
|
A Status that may have resulted in a temporary user being created. More...
Public Member Functions | |
getSavedTempUser () | |
Get the temporary user that was created as part of the action that resulted in this status, or null if no temporary user was created. | |
getContext () | |
Get the context that should be used for any further actions. | |
Static Protected Member Functions | |
static | newTempUserStatus (array $data, ?UserIdentity $savedTempUser, IContextSource $context) |
A Status that may have resulted in a temporary user being created.
On success, the value is an array that contains the saved temp user (if any), a context that should be used for any further actions, and arbitrary other data.
Wikibase\Repo\TempUserStatus::getContext | ( | ) |
Get the context that should be used for any further actions.
If a temporary user was created, then it will be set in this context. (The original context is usually not modified, so it may still reference the anonymous user instead of the temporary user.) Only meaningful if the status is OK
.
Wikibase\Repo\TempUserStatus::getSavedTempUser | ( | ) |
Get the temporary user that was created as part of the action that resulted in this status, or null if no temporary user was created.
Only meaningful if the status is OK
.
|
staticprotected |