49 parent::__construct( $context, $linkRenderer );
50 $this->linkBatchFactory = $linkBatchFactory;
51 $from = str_replace(
' ',
'_', $from );
61 'tables' => [
'category' ],
62 'fields' => [
'cat_title',
'cat_pages' ],
63 'options' => [
'USE INDEX' =>
'cat_title' ],
72 parent::getDefaultQuery();
73 unset( $this->mDefaultQuery[
'from'] );
80 $batch = $this->linkBatchFactory->newLinkBatch();
82 $this->mResult->rewind();
84 foreach ( $this->mResult as $row ) {
88 $this->mResult->rewind();
90 return parent::getBody();
95 $text = $title->getText();
98 $count = $this->
msg(
'nmembers' )->numParams( $result->cat_pages )->escaped();
99 return Html::rawElement(
'li', [], $this->
getLanguage()->specialList( $link, $count ) ) .
"\n";
108 'label-message' =>
'categoriesfrom',
116 $htmlForm = HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
117 ->setSubmitTextMsg(
'categories-submit' )
118 ->setWrapperLegendMsg(
'categories' )
119 ->setMethod(
'get' );
120 return $htmlForm->prepareForm()->getHTML(
false );
129class_alias( CategoryPager::class,
'CategoryPager' );
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
getContext()
Get the base IContextSource object.
Interface for objects which can provide a MediaWiki context on request.