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, $maxSerializedEntitySize)
 
 newEditEntity (User $user, EntityId $entityId=null, $baseRevId=false, $allowMasterConnection=true)
 

Private Attributes

 $titleLookup
 
 $entityRevisionLookup
 
 $entityStore
 
 $permissionChecker
 
 $entityDiffer
 
 $entityPatcher
 
 $editFilterHookRunner
 
 $stats
 
 $maxSerializedEntitySize
 

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,
  $maxSerializedEntitySize 
)

Member Function Documentation

◆ newEditEntity()

Wikibase\Repo\EditEntity\MediawikiEditEntityFactory::newEditEntity ( User  $user,
EntityId  $entityId = null,
  $baseRevId = false,
  $allowMasterConnection = true 
)
Parameters
User$userthe user performing the edit
EntityId | null$entityIdthe id of the entity to edit
bool | int | null$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. true and false will be accepted for backwards compatibility, but both will be treated like 0. 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

◆ $maxSerializedEntitySize

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

◆ $permissionChecker

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

◆ $stats

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

◆ $titleLookup

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

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