Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7436968
PageLinksTable.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
PageLinksTable.php
View Options
<?php
namespace
MediaWiki\Deferred\LinksUpdate
;
use
MediaWiki\Config\Config
;
use
MediaWiki\Config\ServiceOptions
;
use
MediaWiki\MainConfigNames
;
use
MediaWiki\Parser\ParserOutput
;
/**
* pagelinks
*/
class
PageLinksTable
extends
GenericPageLinksTable
{
private
const
CONSTRUCTOR_OPTIONS
=
[
MainConfigNames
::
PageLinksSchemaMigrationStage
,
];
/** @var int */
private
$migrationStage
;
public
function
__construct
(
Config
$config
)
{
$options
=
new
ServiceOptions
(
self
::
CONSTRUCTOR_OPTIONS
,
$config
);
$options
->
assertRequiredOptions
(
self
::
CONSTRUCTOR_OPTIONS
);
$this
->
migrationStage
=
$options
->
get
(
MainConfigNames
::
PageLinksSchemaMigrationStage
);
}
public
function
setParserOutput
(
ParserOutput
$parserOutput
)
{
$this
->
newLinks
=
$parserOutput
->
getLinks
();
}
protected
function
getTableName
()
{
return
'pagelinks'
;
}
protected
function
getFromField
()
{
return
'pl_from'
;
}
protected
function
getNamespaceField
()
{
return
'pl_namespace'
;
}
protected
function
getTitleField
()
{
return
'pl_title'
;
}
protected
function
getFromNamespaceField
()
{
return
'pl_from_namespace'
;
}
protected
function
getTargetIdField
()
{
return
'pl_target_id'
;
}
/**
* Normalization stage of the links table (see T222224)
* @return int
*/
protected
function
linksTargetNormalizationStage
():
int
{
return
$this
->
migrationStage
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 13:44 (1 d, 9 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/0b/e9c3848a96fe84e0f7a58d958553
Default Alt Text
PageLinksTable.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment