|
| | __construct (EntityTitleStoreLookup $titleLookup, EntityRevisionLookup $entityLookup, EntityStore $entityStore, EntityPermissionChecker $permissionChecker, EntityDiffer $entityDiffer, EntityPatcher $entityPatcher, EditFilterHookRunner $editFilterHookRunner, StatsFactory $statsFactory, UserOptionsLookup $userOptionsLookup, TempUserCreator $tempUserCreator, int $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, |
|
|
StatsFactory | $statsFactory, |
|
|
UserOptionsLookup | $userOptionsLookup, |
|
|
TempUserCreator | $tempUserCreator, |
|
|
int | $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
◆ $entityDiffer
| EntityDiffer Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityDiffer |
|
private |
◆ $entityPatcher
| EntityPatcher Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityPatcher |
|
private |
◆ $entityRevisionLookup
◆ $entityStore
| EntityStore Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$entityStore |
|
private |
◆ $localEntityTypes
| array Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$localEntityTypes |
|
private |
◆ $maxSerializedEntitySize
| int Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$maxSerializedEntitySize |
|
private |
◆ $permissionChecker
◆ $statsFactory
| StatsFactory Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$statsFactory |
|
private |
◆ $tempUserCreator
| TempUserCreator Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$tempUserCreator |
|
private |
◆ $titleLookup
◆ $userOptionsLookup
| UserOptionsLookup Wikibase\Repo\EditEntity\MediaWikiEditEntityFactory::$userOptionsLookup |
|
private |
The documentation for this class was generated from the following file: