MediaWiki  REL1_20
PageQueryPage.php
Go to the documentation of this file.
00001 <?php
00029 abstract class PageQueryPage extends QueryPage {
00030 
00038         public function formatResult( $skin, $row ) {
00039                 global $wgContLang;
00040 
00041                 $title = Title::makeTitleSafe( $row->namespace, $row->title );
00042 
00043                 if ( $title instanceof Title ) {
00044                         $text = $wgContLang->convert( $title->getPrefixedText() );
00045                         return Linker::linkKnown( $title, htmlspecialchars( $text ) );
00046                 } else {
00047                         return Html::element( 'span', array( 'class' => 'mw-invalidtitle' ),
00048                                 Linker::getInvalidTitleDescription( $this->getContext(), $row->namespace, $row->title ) );
00049                 }
00050         }
00051 }