MediaWiki REL1_37
MediaWiki\Page\PageCommandFactory Class Reference

Common factory to construct page handling classes. 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 $dbReplicatedCache, string $localWikiID, string $webRequestID, BacklinkCacheFactory $backlinkCacheFactory)
 
 newContentModelChange (Authority $performer, WikiPage $wikipage, 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.
 

Private Attributes

ActorMigration $actorMigration
 
ActorNormalization $actorNormalization
 
BacklinkCacheFactory $backlinkCacheFactory
 
CollationFactory $collationFactory
 
CommentStore $commentStore
 
Config $config
 
IContentHandlerFactory $contentHandlerFactory
 
BagOStuff $dbReplicatedCache
 
HookContainer $hookContainer
 
JobQueueGroup $jobQueueGroup
 
LBFactory $lbFactory
 
string $localWikiID
 
NamespaceInfo $namespaceInfo
 
ReadOnlyMode $readOnlyMode
 
RepoGroup $repoGroup
 
RevisionStore $revisionStore
 
SpamChecker $spamChecker
 
TitleFactory $titleFactory
 
TitleFormatter $titleFormatter
 
UserEditTracker $userEditTracker
 
UserFactory $userFactory
 
WatchedItemStoreInterface $watchedItemStore
 
string $webRequestID
 
WikiPageFactory $wikiPageFactory
 

Detailed Description

Common factory to construct page handling classes.

Since
1.35

Definition at line 60 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  $dbReplicatedCache,
string  $localWikiID,
string  $webRequestID,
BacklinkCacheFactory  $backlinkCacheFactory 
)

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 198 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 217 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 242 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 268 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 297 of file PageCommandFactory.php.

Member Data Documentation

◆ $actorMigration

ActorMigration MediaWiki\Page\PageCommandFactory::$actorMigration
private

◆ $actorNormalization

ActorNormalization MediaWiki\Page\PageCommandFactory::$actorNormalization
private

◆ $backlinkCacheFactory

BacklinkCacheFactory MediaWiki\Page\PageCommandFactory::$backlinkCacheFactory
private

◆ $collationFactory

CollationFactory MediaWiki\Page\PageCommandFactory::$collationFactory
private

◆ $commentStore

CommentStore MediaWiki\Page\PageCommandFactory::$commentStore
private

◆ $config

Config MediaWiki\Page\PageCommandFactory::$config
private

◆ $contentHandlerFactory

IContentHandlerFactory MediaWiki\Page\PageCommandFactory::$contentHandlerFactory
private

◆ $dbReplicatedCache

BagOStuff MediaWiki\Page\PageCommandFactory::$dbReplicatedCache
private

◆ $hookContainer

HookContainer MediaWiki\Page\PageCommandFactory::$hookContainer
private

◆ $jobQueueGroup

JobQueueGroup MediaWiki\Page\PageCommandFactory::$jobQueueGroup
private

◆ $lbFactory

LBFactory MediaWiki\Page\PageCommandFactory::$lbFactory
private

◆ $localWikiID

string MediaWiki\Page\PageCommandFactory::$localWikiID
private

◆ $namespaceInfo

NamespaceInfo MediaWiki\Page\PageCommandFactory::$namespaceInfo
private

◆ $readOnlyMode

ReadOnlyMode MediaWiki\Page\PageCommandFactory::$readOnlyMode
private

◆ $repoGroup

RepoGroup MediaWiki\Page\PageCommandFactory::$repoGroup
private

◆ $revisionStore

RevisionStore MediaWiki\Page\PageCommandFactory::$revisionStore
private

◆ $spamChecker

SpamChecker MediaWiki\Page\PageCommandFactory::$spamChecker
private

◆ $titleFactory

TitleFactory MediaWiki\Page\PageCommandFactory::$titleFactory
private

◆ $titleFormatter

TitleFormatter MediaWiki\Page\PageCommandFactory::$titleFormatter
private

◆ $userEditTracker

UserEditTracker MediaWiki\Page\PageCommandFactory::$userEditTracker
private

◆ $userFactory

UserFactory MediaWiki\Page\PageCommandFactory::$userFactory
private

◆ $watchedItemStore

WatchedItemStoreInterface MediaWiki\Page\PageCommandFactory::$watchedItemStore
private

◆ $webRequestID

string MediaWiki\Page\PageCommandFactory::$webRequestID
private

◆ $wikiPageFactory

WikiPageFactory MediaWiki\Page\PageCommandFactory::$wikiPageFactory
private

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