MediaWiki REL1_39
PageLinksTable.php
Go to the documentation of this file.
1<?php
2
4
6
11 public function setParserOutput( ParserOutput $parserOutput ) {
12 $this->newLinks = $parserOutput->getLinks();
13 }
14
15 protected function getTableName() {
16 return 'pagelinks';
17 }
18
19 protected function getFromField() {
20 return 'pl_from';
21 }
22
23 protected function getNamespaceField() {
24 return 'pl_namespace';
25 }
26
27 protected function getTitleField() {
28 return 'pl_title';
29 }
30
31 protected function getFromNamespaceField() {
32 return 'pl_from_namespace';
33 }
34
35 protected function getTargetIdField() {
36 return 'pl_target_id';
37 }
38}
Shared code for pagelinks and templatelinks.
getFromField()
Get the name of the field which links to page_id.
getNamespaceField()
Get the namespace field name.
getTitleField()
Get the title (DB key) field name.
setParserOutput(ParserOutput $parserOutput)
Subclasses should implement this to extract the data they need from the ParserOutput.
getTargetIdField()
Get the link target id (DB key) field name.