<?php
/**
- * A querypage to list the most wanted categories
+ * @file
+ * @ingroup SpecialPage
+ */
+
+/**
+ * A querypage to list the most wanted categories - implements Special:Wantedcategories
*
- * @addtogroup SpecialPage
+ * @ingroup SpecialPage
*
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
* @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
*/
-
-/**
- * @addtogroup SpecialPage
- */
class WantedCategoriesPage extends QueryPage {
- function getName() { return 'Wantedcategories'; }
- function isExpensive() { return true; }
- function isSyndicated() { return false; }
+ function getName() {
+ return 'Wantedcategories';
+ }
+
+ function isExpensive() {
+ return true;
+ }
+
+ function isSyndicated() {
+ return false;
+ }
function getSQL() {
$dbr = wfGetDB( DB_SLAVE );
/**
* Fetch user page links and cache their existence
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
// Back to start for display
$wpp->doQuery( $offset, $limit );
}
-
-?>