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

Page\PageCommandFactory::__construct ( ServiceOptions  $options,
ILoadBalancer  $loadBalancer,
NamespaceInfo  $namespaceInfo,
WatchedItemStoreInterface  $watchedItemStore,
PermissionManager  $permissionManager,
RepoGroup  $repoGroup,
IContentHandlerFactory  $contentHandlerFactory,
RevisionStore  $revisionStore,
SpamChecker  $spamChecker,
HookContainer  $hookContainer 
)

Member Function Documentation

◆ newContentModelChange()

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

Implements Page\ContentModelChangeFactory.

Definition at line 114 of file PageCommandFactory.php.

◆ newMergeHistory()

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

Implements Page\MergeHistoryFactory.

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

Member Data Documentation

◆ $contentHandlerFactory

IContentHandlerFactory Page\PageCommandFactory::$contentHandlerFactory
private

Definition at line 67 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $hookContainer

HookContainer Page\PageCommandFactory::$hookContainer
private

Definition at line 76 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $loadBalancer

ILoadBalancer Page\PageCommandFactory::$loadBalancer
private

Definition at line 52 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $namespaceInfo

NamespaceInfo Page\PageCommandFactory::$namespaceInfo
private

Definition at line 55 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $options

ServiceOptions Page\PageCommandFactory::$options
private

Definition at line 49 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $permissionManager

PermissionManager Page\PageCommandFactory::$permissionManager
private

Definition at line 61 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $repoGroup

RepoGroup Page\PageCommandFactory::$repoGroup
private

Definition at line 64 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $revisionStore

RevisionStore Page\PageCommandFactory::$revisionStore
private

Definition at line 70 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $spamChecker

SpamChecker Page\PageCommandFactory::$spamChecker
private

Definition at line 73 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ $watchedItemStore

WatchedItemStoreInterface Page\PageCommandFactory::$watchedItemStore
private

Definition at line 58 of file PageCommandFactory.php.

Referenced by Page\PageCommandFactory\__construct().

◆ CONSTRUCTOR_OPTIONS

const 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: