Page MenuHomeWickedGov Phorge

PageLinksTable.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

PageLinksTable.php

<?php
namespace MediaWiki\Deferred\LinksUpdate;
use MediaWiki\Parser\ParserOutput;
use MediaWiki\Parser\ParserOutputLinkTypes;
/**
* pagelinks
*/
class PageLinksTable extends GenericPageLinksTable {
public const VIRTUAL_DOMAIN = 'virtual-pagelinks';
public function setParserOutput( ParserOutput $parserOutput ) {
// Convert the format of the local links
$this->newLinks = [];
foreach (
$parserOutput->getLinkList( ParserOutputLinkTypes::LOCAL )
as [ 'link' => $link, 'pageid' => $pageid ]
) {
$this->newLinks[$link->getNamespace()][$link->getDBkey()] = $pageid;
}
}
/** @inheritDoc */
protected function getTableName() {
return 'pagelinks';
}
/** @inheritDoc */
protected function getFromField() {
return 'pl_from';
}
/** @inheritDoc */
protected function getNamespaceField() {
return 'pl_namespace';
}
/** @inheritDoc */
protected function getTitleField() {
return 'pl_title';
}
/** @inheritDoc */
protected function getFromNamespaceField() {
return 'pl_from_namespace';
}
/** @inheritDoc */
protected function getTargetIdField() {
return 'pl_target_id';
}
/** @inheritDoc */
protected function linksTargetNormalizationStage(): int {
return SCHEMA_COMPAT_NEW;
}
/** @inheritDoc */
protected function getVirtualDomain(): string {
return self::VIRTUAL_DOMAIN;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 14 2026, 05:49 (14 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/9f/51fc5f6c772faa9363e170450194
Default Alt Text
PageLinksTable.php (1 KB)

Event Timeline