Handles the submit action for Wikibase entities.
More...
|
| __construct (Article $article, IContextSource $context, PermissionManager $permissionManager, RevisionLookup $revisionLookup, 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) |
|
| requiresUnblock () |
|
| requiresWrite () |
|
|
| makeSummary ( $actionName, RevisionRecord $revision, $userSummary) |
|
| attemptSave (Title $title, EntityContent $content, $summary, $undidRevId, $originalRevId, $editToken) |
|
| getPermissionStatus ( $permission, Title $title, $rigor=PermissionManager::RIGOR_SECURE) |
| Checks the given permission.
|
|
| getEditTokenStatus ( $editToken) |
| Checks that the given token is valid.
|
|
| doWatch (Title $title) |
| Update watchlist.
|
|
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, |
|
|
UserOptionsLookup | $userOptionsLookup, |
|
|
WatchlistManager | $watchlistManager, |
|
|
WikiPageFactory | $wikiPageFactory, |
|
|
AnonymousEditWarningBuilder | $anonymousEditWarningBuilder, |
|
|
EditFilterHookRunner | $editFilterHookRunner, |
|
|
EntityDiffVisualizerFactory | $entityDiffVisualizerFactory, |
|
|
SummaryFormatter | $summaryFormatter ) |
◆ attemptSave()
Wikibase\Repo\Actions\SubmitEntityAction::attemptSave |
( |
Title | $title, |
|
|
EntityContent | $content, |
|
|
| $summary, |
|
|
| $undidRevId, |
|
|
| $originalRevId, |
|
|
| $editToken ) |
|
private |
- Parameters
-
Title | $title | |
EntityContent | $content | |
string | $summary | |
int | $undidRevId | |
int | $originalRevId | |
string | $editToken | |
- Returns
- Status
◆ doesWrites()
Wikibase\Repo\Actions\SubmitEntityAction::doesWrites |
( |
| ) |
|
◆ doWatch()
Wikibase\Repo\Actions\SubmitEntityAction::doWatch |
( |
Title | $title | ) |
|
|
private |
Update watchlist.
- Parameters
-
◆ execute()
Wikibase\Repo\Actions\SubmitEntityAction::execute |
( |
| ) |
|
◆ getEditTokenStatus()
Wikibase\Repo\Actions\SubmitEntityAction::getEditTokenStatus |
( |
| $editToken | ) |
|
|
private |
Checks that the given token is valid.
- Parameters
-
- Returns
- Status
◆ getName()
Wikibase\Repo\Actions\SubmitEntityAction::getName |
( |
| ) |
|
◆ getPermissionStatus()
Wikibase\Repo\Actions\SubmitEntityAction::getPermissionStatus |
( |
| $permission, |
|
|
Title | $title, |
|
|
| $rigor = PermissionManager::RIGOR_SECURE ) |
|
private |
Checks the given permission.
- Parameters
-
string | $permission | |
Title | $title | |
string | $rigor | |
- Returns
- Status a status object representing the check's result.
◆ makeSummary()
Wikibase\Repo\Actions\SubmitEntityAction::makeSummary |
( |
| $actionName, |
|
|
RevisionRecord | $revision, |
|
|
| $userSummary ) |
|
private |
- Parameters
-
string | $actionName | |
RevisionRecord | $revision | |
string | $userSummary | |
- Returns
- string
◆ 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
◆ $summaryFormatter
◆ $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',
'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: