MediaWiki master
MediaWiki\Page\PageCommandFactory Class Reference

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.

Collaboration diagram for MediaWiki\Page\PageCommandFactory:

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)
 
Parameters
ProperPageIdentity$page
Authority$deleter
Returns
DeletePage

 
 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)
 
Parameters
ProperPageIdentity$page
Authority$authority
Returns
UndeletePage

 

Detailed Description

Implementation of various page action services.

Access: internal

Definition at line 63 of file PageCommandFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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.

Member Function Documentation

◆ newContentModelChange()

MediaWiki\Page\PageCommandFactory::newContentModelChange ( Authority $performer,
PageIdentity $page,
string $newContentModel )
Parameters
Authority$performer
PageIdentity$page
string$newContentModel
Returns
ContentModelChange

Implements MediaWiki\Page\ContentModelChangeFactory.

Definition at line 179 of file PageCommandFactory.php.

◆ newDeletePage()

MediaWiki\Page\PageCommandFactory::newDeletePage ( ProperPageIdentity $page,
Authority $deleter )

Parameters
ProperPageIdentity$page
Authority$deleter
Returns
DeletePage

Implements MediaWiki\Page\DeletePageFactory.

Definition at line 200 of file PageCommandFactory.php.

◆ newMergeHistory()

MediaWiki\Page\PageCommandFactory::newMergeHistory ( PageIdentity $source,
PageIdentity $destination,
string $timestamp = null )
Parameters
PageIdentity$source
PageIdentity$destination
string | null$timestamp
Returns
MergeHistory

Implements MediaWiki\Page\MergeHistoryFactory.

Definition at line 228 of file PageCommandFactory.php.

◆ newMovePage()

MediaWiki\Page\PageCommandFactory::newMovePage ( Title $from,
Title $to )
Parameters
Title$from
Title$to
Returns
MovePage

Implements MediaWiki\Page\MovePageFactory.

Definition at line 256 of file PageCommandFactory.php.

◆ newRollbackPage()

MediaWiki\Page\PageCommandFactory::newRollbackPage ( PageIdentity $page,
Authority $performer,
UserIdentity $byUser )

Create a new command instance for page rollback.

Parameters
PageIdentity$page
Authority$performer
UserIdentity$byUser
Returns
RollbackPage

Implements MediaWiki\Page\RollbackPageFactory.

Definition at line 289 of file PageCommandFactory.php.

◆ newUndeletePage()

MediaWiki\Page\PageCommandFactory::newUndeletePage ( ProperPageIdentity $page,
Authority $authority )

Parameters
ProperPageIdentity$page
Authority$authority
Returns
UndeletePage

Implements MediaWiki\Page\UndeletePageFactory.

Definition at line 314 of file PageCommandFactory.php.


The documentation for this class was generated from the following file: