wiki.techinc.nl/includes/PageQueryPage.php
Nick Jenkins f9619da3f0 Yet more doc tweaks:
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00

26 lines
587 B
PHP

<?php
/**
* Variant of QueryPage which formats the result as a simple link to the page
*
* @package MediaWiki
* @addtogroup SpecialPage
*/
class PageQueryPage extends QueryPage {
/**
* Format the result as a simple link to the page
*
* @param Skin $skin
* @param object $row Result row
* @return string
*/
public function formatResult( $skin, $row ) {
global $wgContLang;
$title = Title::makeTitleSafe( $row->namespace, $row->title );
return $skin->makeKnownLinkObj( $title,
htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
}
}
?>