Handles the submit action for Wikibase entities.
More...
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 |
( |
Page |
$page, |
|
|
IContextSource |
$context = null |
|
) |
| |
◆ attemptSave()
Wikibase\Repo\Actions\SubmitEntityAction::attemptSave |
( |
Title |
$title, |
|
|
Content |
$content, |
|
|
|
$summary, |
|
|
|
$undidRevId, |
|
|
|
$originalRevId, |
|
|
|
$editToken |
|
) |
| |
|
private |
- Parameters
-
Title | $title | |
Content | $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.
◆ $summaryFormatter
Wikibase\Repo\Actions\SubmitEntityAction::$summaryFormatter |
|
private |
The documentation for this class was generated from the following file: