46 private $languageConverter =
null;
67 $this->languageConverter = $languageConverter;
77 if ( $this->languageConverter === null ) {
83 return $this->languageConverter;
96 $title = Title::makeTitleSafe( $row->namespace, $row->title );
97 if ( $title instanceof
Title ) {
99 $text = $this->getLanguageConverter()->convertHtml( $title->getPrefixedText() );
100 return $this->getLinkRenderer()->makeLink( $title,
new HtmlArmor( $text ) );
102 return Html::element(
'span', [
'class' =>
'mw-invalidtitle' ],
103 Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) );
109class_alias( PageQueryPage::class,
'PageQueryPage' );
if(!defined('MW_SETUP_CALLBACK'))
Marks HTML that shouldn't be escaped.
Variant of QueryPage which formats the result as a simple link to the page.
formatResult( $skin, $row)
Format the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
preprocessResults( $db, $res)
Run a LinkBatch to pre-cache LinkCache information, like page existence and information for stub colo...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
getContentLanguage()
Shortcut to get content language.
The base class for all skins.