linkBatchFactory = $linkBatchFactory; $this->dbProvider = $dbProvider; } public function execute( $par ) { $this->setHeaders(); $this->outputHeader(); $this->addHelpLink( 'Help:Categories' ); $this->getOutput()->getMetadata()->setPreventClickjacking( false ); $from = $this->getRequest()->getText( 'from', $par ?? '' ); $cap = new CategoryPager( $this->getContext(), $this->linkBatchFactory, $this->getLinkRenderer(), $this->dbProvider, $from ); $cap->doQuery(); $this->getOutput()->addHTML( Html::openElement( 'div', [ 'class' => 'mw-spcontent' ] ) . $this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() . $cap->getStartForm( $from ) . $cap->getNavigationBar() . '