34 private $linkBatchFactory;
52 parent::__construct( $context, $linkRenderer );
53 $this->linkBatchFactory = $linkBatchFactory;
54 $from = str_replace(
' ',
'_', $from );
64 'tables' => [
'category' ],
65 'fields' => [
'cat_title',
'cat_pages' ],
66 'options' => [
'USE INDEX' =>
'cat_title' ],
75 parent::getDefaultQuery();
76 unset( $this->mDefaultQuery[
'from'] );
83 $batch = $this->linkBatchFactory->newLinkBatch();
85 $this->mResult->rewind();
87 foreach ( $this->mResult as $row ) {
91 $this->mResult->rewind();
93 return parent::getBody();
101 $count = $this->
msg(
'nmembers' )->numParams( $result->cat_pages )->escaped();
102 return Html::rawElement(
'li', [], $this->
getLanguage()->specialList( $link, $count ) ) .
"\n";
111 'label-message' =>
'categoriesfrom',
120 ->setSubmitTextMsg(
'categories-submit' )
121 ->setWrapperLegendMsg(
'categories' )
122 ->setMethod(
'get' );
123 return $htmlForm->prepareForm()->getHTML(
false );
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
getContext()
Get the base IContextSource object.
Represents a page (or page fragment) title within MediaWiki.
Interface for objects which can provide a MediaWiki context on request.