|
| __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) |
|
- Copyright
- GPL-2.0-or-later
- Author
- Addshore
◆ __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 ) |
◆ newEditEntity()
Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::newEditEntity |
( |
IContextSource | $context, |
|
|
?EntityId | $entityId = null, |
|
|
int | $baseRevId = 0, |
|
|
| $allowMasterConnection = true ) |
- Parameters
-
IContextSource | $context | The request context for the edit. |
EntityId | null | $entityId | the id of the entity to edit |
int | $baseRevId | the 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 | $allowMasterConnection | Can use a master connection or not |
- Returns
- EditEntity
◆ $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: