164 public $specialPageReloadAfter;
178 public $enableConsoleOutput;
179 public $enableDebugConsoleOutput;
187 return $this->dbType ===
'sqlite';
197 global $wgLinkTitlesParseOnEdit;
198 global $wgLinkTitlesParseOnRender;
199 global $wgLinkTitlesPreferShortTitles;
200 global $wgLinkTitlesMinimumTitleLength;
201 global $wgLinkTitlesBlackList;
202 global $wgLinkTitlesSourceNamespaces;
203 global $wgLinkTitlesTargetNamespaces;
204 global $wgLinkTitlesSameNamespace;
205 global $wgLinkTitlesFirstOnly;
206 global $wgLinkTitlesSmartMode;
207 global $wgCapitalLinks;
208 global $wgLinkTitlesWordStartOnly;
209 global $wgLinkTitlesWordEndOnly;
210 global $wgLinkTitlesSkipTemplates;
211 global $wgLinkTitlesParseHeadings;
212 global $wgLinkTitlesEnableNoTargetMagicWord;
213 global $wgLinkTitlesCheckRedirect;
214 global $wgLinkTitlesSpecialPageReloadAfter;
216 $this->parseOnEdit = $wgLinkTitlesParseOnEdit;
217 $this->parseOnRender = $wgLinkTitlesParseOnRender;
218 $this->preferShortTitles = $wgLinkTitlesPreferShortTitles;
219 $this->minimumTitleLength = $wgLinkTitlesMinimumTitleLength;
220 $this->blackList = $wgLinkTitlesBlackList;
221 $this->sourceNamespaces = $wgLinkTitlesSourceNamespaces ? $wgLinkTitlesSourceNamespaces : [ NS_MAIN ];
222 $this->targetNamespaces = $wgLinkTitlesTargetNamespaces;
223 $this->sameNamespace = $wgLinkTitlesSameNamespace;
224 $this->firstOnly = $wgLinkTitlesFirstOnly;
225 $this->smartMode = $wgLinkTitlesSmartMode;
226 $this->capitalLinks = $wgCapitalLinks;
227 $this->wordStartOnly = $wgLinkTitlesWordStartOnly;
228 $this->wordEndOnly = $wgLinkTitlesWordEndOnly;
229 $this->skipTemplates = $wgLinkTitlesSkipTemplates;
230 $this->parseHeadings = $wgLinkTitlesParseHeadings;
231 $this->enableNoTargetMagicWord = $wgLinkTitlesEnableNoTargetMagicWord;;
232 $this->checkRedirect = $wgLinkTitlesCheckRedirect;;
233 $this->specialPageReloadAfter = $wgLinkTitlesSpecialPageReloadAfter;
234 $this->enableConsoleOutput =
false;
235 $this->enableDebugConsoleOutput =
false;
236 $this->dbType = $wgDBtype;
$checkRedirect
Whether to check if a potential target page links back to the source page.
$sameNamespace
Whether to link to pages in the same namespace (default is true).
__construct()
Constructs a new Config object.
$minimumTitleLength
Minimum length of a page title for it to qualify as a potential link target.
$parseOnEdit
Whether to add links to a page when the page is edited/saved.
$parseOnRender
Whether to add links to a page when the page is rendered.
$dbType
Caches the global $wgDBtype variable.
$preferShortTitles
Indicates whether to prioritize short over long titles.
$firstOnly
Indicates whether to add a link to the first occurrence of a page title only (true), or add links to all occurrences on the source page (false).
$parseHeadings
Whether or not to parse headings.
$skipTemplates
Whether or not to skip templates.
$capitalLinks
Mirrors the global MediaWiki variable $wgCapitalLinks that indicates whether or not page titles are f...
$enableNoTargetMagicWord
Whether to enable the NOAUTOLINKTARGET magic word which prevents a potential target page from being l...
$wordStartOnly
Whether or not to link to pages only if the page title appears at the start of a word on the target p...
$targetNamespaces
Array of those namespaces (integer constants) whose pages may be linked to a source page...
$sourceNamespaces
Array of those namespaces (integer constants) whose pages may be linked when edited.
Holds LinkTitles configuration.
The LinkTitles class holds configuration for the LinkTitles extension.
$smartMode
Indicates whether to operate in smart mode, i.e.
sqliteDatabase()
Determines whether the MediaWiki database is SQLITE by inspecting the $wgDBtype variable (which is ca...
$wordEndOnly
Whether or not to link to pages only if the page title appears at the end of a word on the target pag...
$blackList
Array of page titles that must never be link targets.