56 parent::__construct( $context, $linkRenderer );
57 $this->linkBatchFactory = $linkBatchFactory;
58 $from = str_replace(
' ',
'_', $from );
68 'tables' => [
'category' ],
69 'fields' => [
'cat_title',
'cat_pages' ],
70 'options' => [
'USE INDEX' =>
'cat_title' ],
79 parent::getDefaultQuery();
80 unset( $this->mDefaultQuery[
'from'] );
87 $batch = $this->linkBatchFactory->newLinkBatch();
89 $this->mResult->rewind();
91 foreach ( $this->mResult as $row ) {
95 $this->mResult->rewind();
97 return parent::getBody();
102 $text = $title->getText();
105 $count = $this->
msg(
'nmembers' )->numParams( $result->cat_pages )->escaped();
106 return Html::rawElement(
'li', [], $this->
getLanguage()->specialList( $link, $count ) ) .
"\n";
115 'label-message' =>
'categoriesfrom',
123 $htmlForm = HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
124 ->setSubmitTextMsg(
'categories-submit' )
125 ->setWrapperLegendMsg(
'categories' )
126 ->setMethod(
'get' );
127 return $htmlForm->prepareForm()->getHTML(
false );
136class_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.