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

A Status representing the result of an EditEntity edit. More...

+ Inheritance diagram for Wikibase\Repo\EditEntity\EditEntityStatus:
+ Collaboration diagram for Wikibase\Repo\EditEntity\EditEntityStatus:

Public Member Functions

 setErrorFlags (int $errorFlags)
 Set the "OK" flag to false and the value to the given error flags.
 
 getRevision ()
 The revision that the edit resulted in.
 
 getErrorFlags ()
 Bitfield indicating errors; see the XXX_ERROR constants in EditEntity.
 
- Public Member Functions inherited from 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.
 
 getContext ()
 Get the context that should be used for any further actions.
 

Static Public Member Functions

static newEdit (EntityRevision $revision, ?UserIdentity $savedTempUser, IContextSource $context)
 
static wrap ( $sv)
 

Additional Inherited Members

- Static Protected Member Functions inherited from Wikibase\Repo\TempUserStatus
static newTempUserStatus (array $data, ?UserIdentity $savedTempUser, IContextSource $context)
 

Detailed Description

A Status representing the result of an EditEntity edit.

Member Function Documentation

◆ getErrorFlags()

Wikibase\Repo\EditEntity\EditEntityStatus::getErrorFlags ( )

Bitfield indicating errors; see the XXX_ERROR constants in EditEntity.

Only meaningful if the status is not OK, and not guaranteed to be present even then.

◆ getRevision()

Wikibase\Repo\EditEntity\EditEntityStatus::getRevision ( )

The revision that the edit resulted in.

Only meaningful if the status is OK.

◆ newEdit()

static Wikibase\Repo\EditEntity\EditEntityStatus::newEdit ( EntityRevision $revision,
?UserIdentity $savedTempUser,
IContextSource $context )
static

◆ setErrorFlags()

Wikibase\Repo\EditEntity\EditEntityStatus::setErrorFlags ( int $errorFlags)

Set the "OK" flag to false and the value to the given error flags.

◆ wrap()

static Wikibase\Repo\EditEntity\EditEntityStatus::wrap ( $sv)
static
Returns
static

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