Doc cleanup:
[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 * @addtogroup SpecialPage
7 */
8 class PageQueryPage extends QueryPage {
9
10 /**
11 * Format the result as a simple link to the page
12 *
13 * @param Skin $skin
14 * @param object $row Result row
15 * @return string
16 */
17 public function formatResult( $skin, $row ) {
18 global $wgContLang;
19 $title = Title::makeTitleSafe( $row->namespace, $row->title );
20 return $skin->makeKnownLinkObj( $title,
21 htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
22 }
23 }
24
25