MediaWiki  master
Page\PageCommandFactory Class Reference

Common factory to construct page handling classes. More...

Inheritance diagram for Page\PageCommandFactory:
Collaboration diagram for 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
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...
 

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()

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()

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

Implements Page\ContentModelChangeFactory.

Definition at line 198 of file PageCommandFactory.php.

◆ newDeletePage()

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

Parameters
ProperPageIdentity$page
Authority$deleter
Returns
DeletePage

Implements Page\DeletePageFactory.

Definition at line 217 of file PageCommandFactory.php.

References Page\DeletePage\CONSTRUCTOR_OPTIONS.

◆ newMergeHistory()

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

Implements Page\MergeHistoryFactory.

Definition at line 242 of file PageCommandFactory.php.

References $source.

◆ newMovePage()

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

Implements Page\MovePageFactory.

Definition at line 268 of file PageCommandFactory.php.

References MovePage\CONSTRUCTOR_OPTIONS.

◆ newRollbackPage()

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 Page\RollbackPageFactory.

Definition at line 297 of file PageCommandFactory.php.

Member Data Documentation

◆ $actorMigration

ActorMigration Page\PageCommandFactory::$actorMigration
private

Definition at line 108 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $actorNormalization

ActorNormalization Page\PageCommandFactory::$actorNormalization
private

Definition at line 111 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $backlinkCacheFactory

BacklinkCacheFactory Page\PageCommandFactory::$backlinkCacheFactory
private

Definition at line 138 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $collationFactory

CollationFactory Page\PageCommandFactory::$collationFactory
private

Definition at line 120 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $commentStore

CommentStore Page\PageCommandFactory::$commentStore
private

Definition at line 126 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $config

Config Page\PageCommandFactory::$config
private

Definition at line 69 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $contentHandlerFactory

IContentHandlerFactory Page\PageCommandFactory::$contentHandlerFactory
private

Definition at line 87 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $dbReplicatedCache

BagOStuff Page\PageCommandFactory::$dbReplicatedCache
private

Definition at line 129 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $hookContainer

HookContainer Page\PageCommandFactory::$hookContainer
private

Definition at line 99 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $jobQueueGroup

JobQueueGroup Page\PageCommandFactory::$jobQueueGroup
private

Definition at line 123 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $lbFactory

LBFactory Page\PageCommandFactory::$lbFactory
private

Definition at line 72 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $localWikiID

string Page\PageCommandFactory::$localWikiID
private

Definition at line 132 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $namespaceInfo

NamespaceInfo Page\PageCommandFactory::$namespaceInfo
private

Definition at line 75 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $readOnlyMode

ReadOnlyMode Page\PageCommandFactory::$readOnlyMode
private

Definition at line 84 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $repoGroup

RepoGroup Page\PageCommandFactory::$repoGroup
private

Definition at line 81 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $revisionStore

RevisionStore Page\PageCommandFactory::$revisionStore
private

Definition at line 90 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $spamChecker

SpamChecker Page\PageCommandFactory::$spamChecker
private

Definition at line 93 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $titleFactory

TitleFactory Page\PageCommandFactory::$titleFactory
private

Definition at line 114 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $titleFormatter

TitleFormatter Page\PageCommandFactory::$titleFormatter
private

Definition at line 96 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $userEditTracker

UserEditTracker Page\PageCommandFactory::$userEditTracker
private

Definition at line 117 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $userFactory

UserFactory Page\PageCommandFactory::$userFactory
private

Definition at line 105 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $watchedItemStore

WatchedItemStoreInterface Page\PageCommandFactory::$watchedItemStore
private

Definition at line 78 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $webRequestID

string Page\PageCommandFactory::$webRequestID
private

Definition at line 135 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $wikiPageFactory

WikiPageFactory Page\PageCommandFactory::$wikiPageFactory
private

Definition at line 102 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().


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