MediaWiki  master
MediaWiki\Page\PageCommandFactory Class Reference

Implementation of various page action services. More...

Inheritance diagram for MediaWiki\Page\PageCommandFactory:
Collaboration diagram for MediaWiki\Page\PageCommandFactory:

Public Member Functions

 __construct (Config $config, LBFactory $lbFactory, NamespaceInfo $namespaceInfo, WatchedItemStoreInterface $watchedItemStore, RepoGroup $repoGroup, ReadOnlyMode $readOnlyMode, IContentHandlerFactory $contentHandlerFactory, RevisionStore $revisionStore, 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)
 
 newContentModelChange (Authority $performer, WikiPage $wikipage, string $newContentModel)
 
 newDeletePage (ProperPageIdentity $page, Authority $deleter)
 
Parameters
ProperPageIdentity$page
Authority$deleter
Returns
DeletePage
More...
 
 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. More...
 
 newUndeletePage (ProperPageIdentity $page, Authority $authority)
 
Parameters
ProperPageIdentity$page
Authority$authority
Returns
UndeletePage
More...
 

Detailed Description

Implementation of various page action services.

Access: internal

Definition at line 64 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,
RevisionStore  $revisionStore,
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 
)

Definition at line 160 of file PageCommandFactory.php.

Member Function Documentation

◆ newContentModelChange()

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

Implements MediaWiki\Page\ContentModelChangeFactory.

Definition at line 228 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 247 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 274 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 300 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 331 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 356 of file PageCommandFactory.php.


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