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

Public Member Functions

 __construct (EntityTitleStoreLookup $titleLookup, EntityRevisionLookup $entityLookup, EntityStore $entityStore, EntityPermissionChecker $permissionChecker, EntityDiffer $entityDiffer, EntityPatcher $entityPatcher, EditFilterHookRunner $editFilterHookRunner, StatsdDataFactoryInterface $statsdDataFactory, UserOptionsLookup $userOptionsLookup, TempUserCreator $tempUserCreator, $maxSerializedEntitySize, array $localEntityTypes)
 
 newEditEntity (IContextSource $context, EntityId $entityId=null, int $baseRevId=0, $allowMasterConnection=true)
 

Private Attributes

 $titleLookup
 
 $entityRevisionLookup
 
 $entityStore
 
 $permissionChecker
 
 $entityDiffer
 
 $entityPatcher
 
 $editFilterHookRunner
 
 $stats
 
 $userOptionsLookup
 
 $tempUserCreator
 
 $maxSerializedEntitySize
 
 $localEntityTypes
 

Detailed Description

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::__construct ( EntityTitleStoreLookup $titleLookup,
EntityRevisionLookup $entityLookup,
EntityStore $entityStore,
EntityPermissionChecker $permissionChecker,
EntityDiffer $entityDiffer,
EntityPatcher $entityPatcher,
EditFilterHookRunner $editFilterHookRunner,
StatsdDataFactoryInterface $statsdDataFactory,
UserOptionsLookup $userOptionsLookup,
TempUserCreator $tempUserCreator,
$maxSerializedEntitySize,
array $localEntityTypes )

Member Function Documentation

◆ newEditEntity()

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::newEditEntity ( IContextSource $context,
EntityId $entityId = null,
int $baseRevId = 0,
$allowMasterConnection = true )
Parameters
IContextSource$contextThe request context for the edit.
EntityId | null$entityIdthe id of the entity to edit
int$baseRevIdthe base revision ID for conflict checking. Use 0 to indicate that the current revision should be used as the base revision, effectively disabling conflict detections. Note that the behavior of EditEntity was changed so that "late" conflicts that arise between edit conflict detection and database update are always detected, and result in the update to fail.
bool$allowMasterConnectionCan use a master connection or not
Returns
EditEntity

Member Data Documentation

◆ $editFilterHookRunner

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$editFilterHookRunner
private

◆ $entityDiffer

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityDiffer
private

◆ $entityPatcher

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityPatcher
private

◆ $entityRevisionLookup

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityRevisionLookup
private

◆ $entityStore

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityStore
private

◆ $localEntityTypes

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$localEntityTypes
private

◆ $maxSerializedEntitySize

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$maxSerializedEntitySize
private

◆ $permissionChecker

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$permissionChecker
private

◆ $stats

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$stats
private

◆ $tempUserCreator

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$tempUserCreator
private

◆ $titleLookup

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$titleLookup
private

◆ $userOptionsLookup

Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$userOptionsLookup
private

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