|
| __construct (EntityTitleStoreLookup $titleLookup, EntityRevisionLookup $entityLookup, EntityStore $entityStore, EntityPermissionChecker $permissionChecker, EntityDiffer $entityDiffer, EntityPatcher $entityPatcher, EditFilterHookRunner $editFilterHookRunner, StatsdDataFactoryInterface $statsdDataFactory, UserOptionsLookup $userOptionsLookup, $maxSerializedEntitySize) |
|
| newEditEntity (IContextSource $context, EntityId $entityId=null, $baseRevId=false, $allowMasterConnection=true) |
|
- Copyright
- GPL-2.0-or-later
- Author
- Addshore
◆ __construct()
◆ newEditEntity()
Wikibase\Repo\EditEntity\MediawikiEditEntityFactory::newEditEntity |
( |
IContextSource |
$context, |
|
|
EntityId |
$entityId = null , |
|
|
|
$baseRevId = false , |
|
|
|
$allowMasterConnection = true |
|
) |
| |
- Parameters
-
IContextSource | $context | The request context for the edit. |
EntityId | null | $entityId | the id of the entity to edit |
bool | int | null | $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. 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 | $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 |
◆ $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 |
◆ $userOptionsLookup
Wikibase\Repo\EditEntity\MediawikiEditEntityFactory::$userOptionsLookup |
|
private |
The documentation for this class was generated from the following file: