Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4117239
PageStoreFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PageStoreFactory.php
View Options
<?php
namespace
MediaWiki\Page
;
use
MediaWiki\Cache\LinkCache
;
use
MediaWiki\Config\ServiceOptions
;
use
MediaWiki\DAO\WikiAwareEntity
;
use
MediaWiki\Title\NamespaceInfo
;
use
MediaWiki\Title\TitleParser
;
use
Wikimedia\Rdbms\ILBFactory
;
use
Wikimedia\Stats\StatsFactory
;
/**
* @since 1.36
*/
class
PageStoreFactory
{
/**
* @internal For use by service wiring
*/
public
const
CONSTRUCTOR_OPTIONS
=
PageStore
::
CONSTRUCTOR_OPTIONS
;
private
ServiceOptions
$options
;
private
ILBFactory
$dbLoadBalancerFactory
;
private
NamespaceInfo
$namespaceInfo
;
private
TitleParser
$titleParser
;
private
LinkCache
$linkCache
;
private
StatsFactory
$stats
;
public
function
__construct
(
ServiceOptions
$options
,
ILBFactory
$dbLoadBalancerFactory
,
NamespaceInfo
$namespaceInfo
,
TitleParser
$titleParser
,
LinkCache
$linkCache
,
StatsFactory
$stats
)
{
$options
->
assertRequiredOptions
(
self
::
CONSTRUCTOR_OPTIONS
);
$this
->
options
=
$options
;
$this
->
dbLoadBalancerFactory
=
$dbLoadBalancerFactory
;
$this
->
namespaceInfo
=
$namespaceInfo
;
$this
->
titleParser
=
$titleParser
;
$this
->
linkCache
=
$linkCache
;
$this
->
stats
=
$stats
;
}
/**
* @param string|false $wikiId
*
* @return PageStore
*/
public
function
getPageStore
(
$wikiId
=
WikiAwareEntity
::
LOCAL
):
PageStore
{
return
new
PageStore
(
$this
->
options
,
$this
->
dbLoadBalancerFactory
->
getMainLB
(
$wikiId
),
$this
->
namespaceInfo
,
$this
->
titleParser
,
$wikiId
!==
WikiAwareEntity
::
LOCAL
?
null
:
$this
->
linkCache
,
$this
->
stats
,
$wikiId
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 02:05 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/a3/158504edd106650aa100f120afc7
Default Alt Text
PageStoreFactory.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment