Handles the submit action for Wikibase entities.
More...
|
| __construct (Article $article, IContextSource $context, PermissionManager $permissionManager, RevisionLookup $revisionLookup, TempUserCreator $tempUserCreator, UserOptionsLookup $userOptionsLookup, WatchlistManager $watchlistManager, WikiPageFactory $wikiPageFactory, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EditFilterHookRunner $editFilterHookRunner, EntityDiffVisualizerFactory $entityDiffVisualizerFactory, SummaryFormatter $summaryFormatter) |
|
| getName () |
|
| doesWrites () |
|
| show () |
| Show the entity using parent::show(), unless an undo operation is requested.
|
|
| execute () |
|
| __construct (Article $article, IContextSource $context, PermissionManager $permissionManager, RevisionLookup $revisionLookup, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EntityDiffVisualizerFactory $entityDiffVisualizerFactory, SummaryFormatter $summaryFormatter) |
|
| requiresUnblock () |
|
| requiresWrite () |
|
Handles the submit action for Wikibase entities.
This performs the undo and restore operations when requested. Otherwise it will just show the normal entity view.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Jens Ohlig
-
Daniel Kinzler
◆ __construct()
Wikibase\Repo\Actions\SubmitEntityAction::__construct |
( |
Article | $article, |
|
|
IContextSource | $context, |
|
|
PermissionManager | $permissionManager, |
|
|
RevisionLookup | $revisionLookup, |
|
|
TempUserCreator | $tempUserCreator, |
|
|
UserOptionsLookup | $userOptionsLookup, |
|
|
WatchlistManager | $watchlistManager, |
|
|
WikiPageFactory | $wikiPageFactory, |
|
|
AnonymousEditWarningBuilder | $anonymousEditWarningBuilder, |
|
|
EditFilterHookRunner | $editFilterHookRunner, |
|
|
EntityDiffVisualizerFactory | $entityDiffVisualizerFactory, |
|
|
SummaryFormatter | $summaryFormatter ) |
◆ attemptSave()
Wikibase\Repo\Actions\SubmitEntityAction::attemptSave |
( |
Title | $title, |
|
|
EntityContent | $content, |
|
|
string | $summary, |
|
|
int | $undidRevId, |
|
|
int | $originalRevId, |
|
|
string | $editToken ) |
|
private |
◆ doesWrites()
Wikibase\Repo\Actions\SubmitEntityAction::doesWrites |
( |
| ) |
|
◆ doWatch()
Wikibase\Repo\Actions\SubmitEntityAction::doWatch |
( |
Title | $title | ) |
|
|
private |
◆ execute()
Wikibase\Repo\Actions\SubmitEntityAction::execute |
( |
| ) |
|
◆ getEditTokenStatus()
Wikibase\Repo\Actions\SubmitEntityAction::getEditTokenStatus |
( |
string | $editToken | ) |
|
|
private |
Checks that the given token is valid.
◆ getName()
Wikibase\Repo\Actions\SubmitEntityAction::getName |
( |
| ) |
|
◆ getTempUserStatus()
Wikibase\Repo\Actions\SubmitEntityAction::getTempUserStatus |
( |
| ) |
|
|
private |
◆ redirectToEntityPage()
Wikibase\Repo\Actions\SubmitEntityAction::redirectToEntityPage |
( |
SubmitEntityStatus | $status | ) |
|
|
private |
Redirect to the page of the entity that was successfully edited.
- Parameters
-
◆ show()
Wikibase\Repo\Actions\SubmitEntityAction::show |
( |
| ) |
|
Show the entity using parent::show(), unless an undo operation is requested.
In that case $this->undo(); is called to perform the action after a permission check.
Reimplemented from Wikibase\Repo\Actions\EditEntityAction.
◆ $editFilterHookRunner
◆ $tempUserCreator
TempUserCreator Wikibase\Repo\Actions\SubmitEntityAction::$tempUserCreator |
|
private |
◆ $userOptionsLookup
UserOptionsLookup Wikibase\Repo\Actions\SubmitEntityAction::$userOptionsLookup |
|
private |
◆ $watchlistManager
WatchlistManager Wikibase\Repo\Actions\SubmitEntityAction::$watchlistManager |
|
private |
◆ $wikiPageFactory
WikiPageFactory Wikibase\Repo\Actions\SubmitEntityAction::$wikiPageFactory |
|
private |
◆ SPEC
const Wikibase\Repo\Actions\SubmitEntityAction::SPEC |
Initial value:= [
'class' => self::class,
'services' => [
'PermissionManager',
'RevisionLookup',
'TempUserCreator',
'UserOptionsLookup',
'WatchlistManager',
'WikiPageFactory',
'WikibaseRepo.AnonymousEditWarningBuilder',
'WikibaseRepo.EditFilterHookRunner',
'WikibaseRepo.EntityDiffVisualizerFactory',
'WikibaseRepo.SummaryFormatter',
],
]
ObjectFactory
specification for this class, to be returned by EntityHandler::getActionOverrides()
implementations.
The documentation for this class was generated from the following file: