MediaWiki master
|
Backend logic for performing a page rollback action. More...
Public Member Functions | |
__construct (ServiceOptions $options, IConnectionProvider $dbProvider, UserFactory $userFactory, ReadOnlyMode $readOnlyMode, RevisionStore $revisionStore, TitleFormatter $titleFormatter, HookContainer $hookContainer, WikiPageFactory $wikiPageFactory, ActorMigration $actorMigration, ActorNormalization $actorNormalization, PageIdentity $page, Authority $performer, UserIdentity $byUser) | |
authorizeRollback () | |
markAsBot (?bool $bot) | |
Mark all reverted edits as bot. | |
rollback () | |
Backend implementation of rollbackIfAllowed(). | |
rollbackIfAllowed () | |
Rollback the most recent consecutive set of edits to a page from the same user; fails if there are no eligible edits to roll back to, e.g. | |
setChangeTags (?array $tags) | |
Change tags to apply to the rollback. | |
setSummary (?string $summary) | |
Set custom edit summary. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Backend logic for performing a page rollback action.
Definition at line 57 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::__construct | ( | ServiceOptions | $options, |
IConnectionProvider | $dbProvider, | ||
UserFactory | $userFactory, | ||
ReadOnlyMode | $readOnlyMode, | ||
RevisionStore | $revisionStore, | ||
TitleFormatter | $titleFormatter, | ||
HookContainer | $hookContainer, | ||
WikiPageFactory | $wikiPageFactory, | ||
ActorMigration | $actorMigration, | ||
ActorNormalization | $actorNormalization, | ||
PageIdentity | $page, | ||
Authority | $performer, | ||
UserIdentity | $byUser ) |
Definition at line 94 of file RollbackPage.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
MediaWiki\Page\RollbackPage::authorizeRollback | ( | ) |
Definition at line 165 of file RollbackPage.php.
References StatusValue\fatal().
MediaWiki\Page\RollbackPage::markAsBot | ( | ?bool | $bot | ) |
Mark all reverted edits as bot.
bool | null | $bot |
Definition at line 143 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::rollback | ( | ) |
Backend implementation of rollbackIfAllowed().
Definition at line 209 of file RollbackPage.php.
References EDIT_FORCE_BOT, EDIT_INTERNAL, EDIT_MINOR, and EDIT_UPDATE.
MediaWiki\Page\RollbackPage::rollbackIfAllowed | ( | ) |
Rollback the most recent consecutive set of edits to a page from the same user; fails if there are no eligible edits to roll back to, e.g.
user is the sole contributor. This function performs permissions checks and executes ::rollback.
Definition at line 186 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::setChangeTags | ( | ?array | $tags | ) |
Change tags to apply to the rollback.
string[] | null | $tags |
Definition at line 160 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::setSummary | ( | ?string | $summary | ) |
Set custom edit summary.
string | null | $summary |
Definition at line 132 of file RollbackPage.php.
const MediaWiki\Page\RollbackPage::CONSTRUCTOR_OPTIONS |
Definition at line 62 of file RollbackPage.php.