MediaWiki fundraising/REL1_35
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 (ServiceOptions $options, ILoadBalancer $loadBalancer, NamespaceInfo $namespaceInfo, WatchedItemStoreInterface $watchedItemStore, PermissionManager $permissionManager, RepoGroup $repoGroup, IContentHandlerFactory $contentHandlerFactory, RevisionStore $revisionStore, SpamChecker $spamChecker, HookContainer $hookContainer)
 
 newContentModelChange (User $user, WikiPage $wikipage, string $newContentModel)
 
 newMergeHistory (Title $source, Title $destination, string $timestamp=null)
 
 newMovePage (Title $from, Title $to)
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Private Attributes

IContentHandlerFactory $contentHandlerFactory
 
HookContainer $hookContainer
 
ILoadBalancer $loadBalancer
 
NamespaceInfo $namespaceInfo
 
ServiceOptions $options
 
PermissionManager $permissionManager
 
RepoGroup $repoGroup
 
RevisionStore $revisionStore
 
SpamChecker $spamChecker
 
WatchedItemStoreInterface $watchedItemStore
 

Detailed Description

Common factory to construct page handling classes.

Since
1.35

Definition at line 47 of file PageCommandFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ newContentModelChange()

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

Implements MediaWiki\Page\ContentModelChangeFactory.

Definition at line 114 of file PageCommandFactory.php.

◆ newMergeHistory()

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

Implements MediaWiki\Page\MergeHistoryFactory.

Definition at line 136 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 163 of file PageCommandFactory.php.

Member Data Documentation

◆ $contentHandlerFactory

IContentHandlerFactory MediaWiki\Page\PageCommandFactory::$contentHandlerFactory
private

◆ $hookContainer

HookContainer MediaWiki\Page\PageCommandFactory::$hookContainer
private

◆ $loadBalancer

ILoadBalancer MediaWiki\Page\PageCommandFactory::$loadBalancer
private

◆ $namespaceInfo

NamespaceInfo MediaWiki\Page\PageCommandFactory::$namespaceInfo
private

◆ $options

ServiceOptions MediaWiki\Page\PageCommandFactory::$options
private

◆ $permissionManager

PermissionManager MediaWiki\Page\PageCommandFactory::$permissionManager
private

◆ $repoGroup

RepoGroup MediaWiki\Page\PageCommandFactory::$repoGroup
private

◆ $revisionStore

RevisionStore MediaWiki\Page\PageCommandFactory::$revisionStore
private

◆ $spamChecker

SpamChecker MediaWiki\Page\PageCommandFactory::$spamChecker
private

◆ $watchedItemStore

WatchedItemStoreInterface MediaWiki\Page\PageCommandFactory::$watchedItemStore
private

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Page\PageCommandFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
'CategoryCollation'
]

Definition at line 78 of file PageCommandFactory.php.


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