*
*/
class QueryPage {
-
+
/**
* Subclasses return their name here. Make sure the name is also
* specified in SpecialPage.php and in Language.php as a language message
/**
* Subclasses return an SQL query here.
- *
+ *
* Note that the query itself should return the following four columns:
* 'type' (your special page's name), 'namespace', 'title', and 'value'
* *in that order*. 'value' is used for sorting.
function formatResult( $skin, $result ) {
return '';
}
-
+
/**
* The content returned by this function will be output before any result
*/
}
}
if ( $res === false ) {
- $res = $dbr->query( $sql . $this->getOrder() .
+ $res = $dbr->query( $sql . $this->getOrder() .
$dbr->limitResult( $limit,$offset ), $fname );
$num = $dbr->numRows($res);
}
$sk = $wgUser->getSkin( );
-
+
$wgOut->addHTML( $this->getPageHeader() );
$top = wfShowingResults( $offset, $num);
function getStylesheet() {
return 'wikistandard.css';
}
-
+
function getSkinName() {
return 'standard';
}
$s .= $this->doGetUserStyles();
return $s."\n";
}
-
+
/**
* placeholder, returns generated js in monobook
*/
# of categories an article belong to
if($wgUseCategoryBrowser) {
$s .= '<br/><hr/>';
-
+
# get a big array of the parents tree
$parenttree = $wgTitle->getCategorieBrowser();
}
return $return;
}
-
+
$s .= walkThrough($parenttree);
}
* comments. It escapes any HTML in the comment, but adds some CSS to format
* auto-generated comments (from section editing) and formats [[wikilinks]].
*
- * The &$title parameter must be a title OBJECT. It is used to generate a
+ * The &$title parameter must be a title OBJECT. It is used to generate a
* direct link to the section in the autocomment.
* @author Erik Moeller <moeller@scireview.de>
- *
+ *
* Note: there's not always a title to pass to this function.
* Since you can't set a default parameter for a reference, I've turned it
* temporarily to a value pass. Should be adjusted further. --brion
$link='';
if($title) {
$section=$auto;
-
+
# This is hackish but should work in most cases.
$section=str_replace('[[','',$section);
$section=str_replace(']]','',$section);