- function formatRow($result) {
- global $wgLang;
- $title = Title::makeTitle( NS_CATEGORY, $result->cat_title );
- $titleText = $this->getSkin()->makeLinkObj( $title, htmlspecialchars( $title->getText() ) );
- $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ),
- $wgLang->formatNum( $result->cat_pages ) );
- return Xml::tags('li', null, "$titleText ($count)" ) . "\n";
- }
-
- public function getStartForm( $from ) {
- global $wgScript;
- $t = SpecialPage::getTitleFor( 'Categories' );
-
- return
- Xml::tags( 'form', array( 'method' => 'get', 'action' => $wgScript ),
- Xml::hidden( 'title', $t->getPrefixedText() ) .
- Xml::fieldset( wfMsg( 'categories' ),
- Xml::inputLabel( wfMsg( 'categoriesfrom' ),
- 'from', 'from', 20, $from ) .
- ' ' .
- Xml::submitButton( wfMsg( 'allpagessubmit' ) ) ) );