MediaWiki REL1_40
|
Backend logic for performing a page rollback action. More...
Public Member Functions | |
__construct (ServiceOptions $options, ILoadBalancer $loadBalancer, UserFactory $userFactory, ReadOnlyMode $readOnlyMode, RevisionStore $revisionStore, TitleFormatter $titleFormatter, HookContainer $hookContainer, WikiPageFactory $wikiPageFactory, ActorMigration $actorMigration, ActorNormalization $actorNormalization, PageIdentity $page, Authority $performer, UserIdentity $byUser) | |
authorizeRollback () | |
Authorize the rollback. | |
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. | |
Backend logic for performing a page rollback action.
Definition at line 56 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::__construct | ( | ServiceOptions | $options, |
ILoadBalancer | $loadBalancer, | ||
UserFactory | $userFactory, | ||
ReadOnlyMode | $readOnlyMode, | ||
RevisionStore | $revisionStore, | ||
TitleFormatter | $titleFormatter, | ||
HookContainer | $hookContainer, | ||
WikiPageFactory | $wikiPageFactory, | ||
ActorMigration | $actorMigration, | ||
ActorNormalization | $actorNormalization, | ||
PageIdentity | $page, | ||
Authority | $performer, | ||
UserIdentity | $byUser ) |
ServiceOptions | $options | |
ILoadBalancer | $loadBalancer | |
UserFactory | $userFactory | |
ReadOnlyMode | $readOnlyMode | |
RevisionStore | $revisionStore | |
TitleFormatter | $titleFormatter | |
HookContainer | $hookContainer | |
WikiPageFactory | $wikiPageFactory | |
ActorMigration | $actorMigration | |
ActorNormalization | $actorNormalization | |
PageIdentity | $page | |
Authority | $performer | |
UserIdentity | $byUser | who made the edits we are rolling back |
Definition at line 131 of file RollbackPage.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
MediaWiki\Page\RollbackPage::authorizeRollback | ( | ) |
Authorize the rollback.
Definition at line 207 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 180 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::rollback | ( | ) |
Backend implementation of rollbackIfAllowed().
Definition at line 255 of file RollbackPage.php.
References DB_PRIMARY, 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 232 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::setChangeTags | ( | ?array | $tags | ) |
Change tags to apply to the rollback.
string[] | null | $tags |
Definition at line 197 of file RollbackPage.php.
MediaWiki\Page\RollbackPage::setSummary | ( | ?string | $summary | ) |
Set custom edit summary.
string | null | $summary |
Definition at line 169 of file RollbackPage.php.