2007-03-31 23:36:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Variant of QueryPage which formats the result as a simple link to the page
|
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @ingroup SpecialPage
|
2007-03-31 23:36:58 +00:00
|
|
|
*/
|
2010-12-22 14:16:25 +00:00
|
|
|
abstract class PageQueryPage extends QueryPage {
|
2012-02-12 19:40:13 +00:00
|
|
|
|
2007-03-31 23:36:58 +00:00
|
|
|
/**
|
|
|
|
|
* Format the result as a simple link to the page
|
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @param $skin Skin
|
|
|
|
|
* @param $row Object: result row
|
2007-03-31 23:36:58 +00:00
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function formatResult( $skin, $row ) {
|
|
|
|
|
global $wgContLang;
|
|
|
|
|
$title = Title::makeTitleSafe( $row->namespace, $row->title );
|
2008-10-06 04:36:39 +00:00
|
|
|
$text = $row->title;
|
2010-11-30 19:06:28 +00:00
|
|
|
if ( $title instanceof Title ) {
|
|
|
|
|
$text = $wgContLang->convert( $title->getPrefixedText() );
|
|
|
|
|
}
|
2011-09-05 20:48:14 +00:00
|
|
|
return Linker::linkKnown( $title, htmlspecialchars( $text ) );
|
2007-03-31 23:36:58 +00:00
|
|
|
}
|
|
|
|
|
}
|