$this->setHeaders();
$this->outputHeader();
+ $out = $this->getOutput();
$pager = new NewFilesPager( $this->getContext(), $par );
if ( !$this->including() ) {
- $form = $pager->getForm();
- $form->prepareForm();
- $form->displayForm( '' );
+ $out->addHTML( $pager->buildHTMLForm() );
}
- $this->getOutput()->addHTML( $pager->getBody() );
+ $out->addHTML( $pager->getBody() );
if ( !$this->including() ) {
- $this->getOutput()->addHTML( $pager->getNavigationBar() );
+ $out->addHTML( $pager->getNavigationBar() );
}
}
}
);
}
- function getForm() {
+ protected function getHTMLFormFields() {
global $wgMiserMode;
$fields = array(
'type' => 'check',
'label' => wfMessage( 'showhidebots', wfMsg( 'show' ) ),
'name' => 'showbots',
- # 'default' => $this->getRequest()->getBool( 'showbots', 0 ),
- ),
- 'limit' => array(
- 'type' => 'hidden',
- 'default' => $this->getRequest()->getText( 'limit' ),
- 'name' => 'limit',
- ),
- 'offset' => array(
- 'type' => 'hidden',
- 'default' => $this->getRequest()->getText( 'offset' ),
- 'name' => 'offset',
),
);
unset( $fields['like'] );
}
- $form = new HTMLForm( $fields, $this->getContext() );
- $form->setTitle( $this->getTitle() );
- $form->setSubmitText( wfMsg( 'ilsubmit' ) );
- $form->setMethod( 'get' );
- $form->setWrapperLegend( wfMsg( 'newimages-legend' ) );
+ return $fields;
+ }
+
+ protected function getHTMLFormLegend() {
+ return 'newimages-legend';
+ }
- return $form;
+ protected function getHTMLFormSubmit() {
+ return 'ilsubmit';
}
}