MediaWiki master
|
Implementation of various page action services. More...
Inherits MediaWiki\Page\ContentModelChangeFactory, MediaWiki\Page\DeletePageFactory, MediaWiki\Page\MergeHistoryFactory, MediaWiki\Page\MovePageFactory, MediaWiki\Page\RollbackPageFactory, and MediaWiki\Page\UndeletePageFactory.
Public Member Functions | |||||||
__construct (Config $config, LBFactory $lbFactory, NamespaceInfo $namespaceInfo, WatchedItemStoreInterface $watchedItemStore, RepoGroup $repoGroup, ReadOnlyMode $readOnlyMode, IContentHandlerFactory $contentHandlerFactory, RevisionStoreFactory $revisionStoreFactory, SpamChecker $spamChecker, TitleFormatter $titleFormatter, HookContainer $hookContainer, WikiPageFactory $wikiPageFactory, UserFactory $userFactory, ActorMigration $actorMigration, ActorNormalization $actorNormalization, TitleFactory $titleFactory, UserEditTracker $userEditTracker, CollationFactory $collationFactory, JobQueueGroup $jobQueueGroup, CommentStore $commentStore, BagOStuff $mainStash, string $localWikiID, string $webRequestID, BacklinkCacheFactory $backlinkCacheFactory, LoggerInterface $undeletePageLogger, PageUpdaterFactory $pageUpdaterFactory, ITextFormatter $contLangMsgTextFormatter, ArchivedRevisionLookup $archivedRevisionLookup, RestrictionStore $restrictionStore, LinkTargetLookup $linkTargetLookup, RedirectStore $redirectStore, LogFormatterFactory $logFormatterFactory) | |||||||
newContentModelChange (Authority $performer, PageIdentity $page, string $newContentModel) | |||||||
newDeletePage (ProperPageIdentity $page, Authority $deleter) | |||||||
| |||||||
newMergeHistory (PageIdentity $source, PageIdentity $destination, string $timestamp=null) | |||||||
newMovePage (Title $from, Title $to) | |||||||
newRollbackPage (PageIdentity $page, Authority $performer, UserIdentity $byUser) | |||||||
Create a new command instance for page rollback. | |||||||
newUndeletePage (ProperPageIdentity $page, Authority $authority) | |||||||
| |||||||
Implementation of various page action services.
Definition at line 63 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::__construct | ( | Config | $config, |
LBFactory | $lbFactory, | ||
NamespaceInfo | $namespaceInfo, | ||
WatchedItemStoreInterface | $watchedItemStore, | ||
RepoGroup | $repoGroup, | ||
ReadOnlyMode | $readOnlyMode, | ||
IContentHandlerFactory | $contentHandlerFactory, | ||
RevisionStoreFactory | $revisionStoreFactory, | ||
SpamChecker | $spamChecker, | ||
TitleFormatter | $titleFormatter, | ||
HookContainer | $hookContainer, | ||
WikiPageFactory | $wikiPageFactory, | ||
UserFactory | $userFactory, | ||
ActorMigration | $actorMigration, | ||
ActorNormalization | $actorNormalization, | ||
TitleFactory | $titleFactory, | ||
UserEditTracker | $userEditTracker, | ||
CollationFactory | $collationFactory, | ||
JobQueueGroup | $jobQueueGroup, | ||
CommentStore | $commentStore, | ||
BagOStuff | $mainStash, | ||
string | $localWikiID, | ||
string | $webRequestID, | ||
BacklinkCacheFactory | $backlinkCacheFactory, | ||
LoggerInterface | $undeletePageLogger, | ||
PageUpdaterFactory | $pageUpdaterFactory, | ||
ITextFormatter | $contLangMsgTextFormatter, | ||
ArchivedRevisionLookup | $archivedRevisionLookup, | ||
RestrictionStore | $restrictionStore, | ||
LinkTargetLookup | $linkTargetLookup, | ||
RedirectStore | $redirectStore, | ||
LogFormatterFactory | $logFormatterFactory ) |
Definition at line 105 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::newContentModelChange | ( | Authority | $performer, |
PageIdentity | $page, | ||
string | $newContentModel ) |
Authority | $performer | |
PageIdentity | $page | |
string | $newContentModel |
Implements MediaWiki\Page\ContentModelChangeFactory.
Definition at line 179 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::newDeletePage | ( | ProperPageIdentity | $page, |
Authority | $deleter ) |
ProperPageIdentity | $page | |
Authority | $deleter |
Implements MediaWiki\Page\DeletePageFactory.
Definition at line 200 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::newMergeHistory | ( | PageIdentity | $source, |
PageIdentity | $destination, | ||
string | $timestamp = null ) |
PageIdentity | $source | |
PageIdentity | $destination | |
string | null | $timestamp |
Implements MediaWiki\Page\MergeHistoryFactory.
Definition at line 228 of file PageCommandFactory.php.
Title | $from | |
Title | $to |
Implements MediaWiki\Page\MovePageFactory.
Definition at line 256 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::newRollbackPage | ( | PageIdentity | $page, |
Authority | $performer, | ||
UserIdentity | $byUser ) |
Create a new command instance for page rollback.
PageIdentity | $page | |
Authority | $performer | |
UserIdentity | $byUser |
Implements MediaWiki\Page\RollbackPageFactory.
Definition at line 289 of file PageCommandFactory.php.
MediaWiki\Page\PageCommandFactory::newUndeletePage | ( | ProperPageIdentity | $page, |
Authority | $authority ) |
ProperPageIdentity | $page | |
Authority | $authority |
Implements MediaWiki\Page\UndeletePageFactory.
Definition at line 314 of file PageCommandFactory.php.