Yet more doc tweaks:
[lhc/web/wiklou.git] / includes / PageQueryPage.php
1 <?php
2
3 /**
4 * Variant of QueryPage which formats the result as a simple link to the page
5 *
6 * @package MediaWiki
7 * @addtogroup SpecialPage
8 */
9 class PageQueryPage extends QueryPage {
10
11 /**
12 * Format the result as a simple link to the page
13 *
14 * @param Skin $skin
15 * @param object $row Result row
16 * @return string
17 */
18 public function formatResult( $skin, $row ) {
19 global $wgContLang;
20 $title = Title::makeTitleSafe( $row->namespace, $row->title );
21 return $skin->makeKnownLinkObj( $title,
22 htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
23 }
24 }
25
26 ?>