Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\TempUserStatus Class Reference

A Status that may have resulted in a temporary user being created. More...

+ Inheritance diagram for Wikibase\Repo\TempUserStatus:
+ Collaboration diagram for Wikibase\Repo\TempUserStatus:

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)
 

Detailed Description

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.

Member Function Documentation

◆ getContext()

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.

◆ getSavedTempUser()

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.

◆ newTempUserStatus()

static Wikibase\Repo\TempUserStatus::newTempUserStatus ( array $data,
?UserIdentity $savedTempUser,
IContextSource $context )
staticprotected
Returns
static

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