$this->outputHeader();
$this->getOutput()->allowClickjacking();
- $from = $this->getRequest()->getText( 'from', $par );
+ $from = $this->getRequest()->getText( 'wpFrom', $par );
$cap = new CategoryPager( $this->getContext(), $from );
$cap->doQuery();
$this->getOutput()->addHTML(
Html::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) .
$this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() .
- $cap->getStartForm( $from ) .
+ $cap->buildHTMLForm() .
$cap->getNavigationBar() .
'<ul>' . $cap->getBody() . '</ul>' .
$cap->getNavigationBar() .
return Xml::tags( 'li', null, $this->getLanguage()->specialList( $titleText, $count ) ) . "\n";
}
- public function getStartForm( $from ) {
- global $wgScript;
-
- return
- Xml::tags( 'form', array( 'method' => 'get', 'action' => $wgScript ),
- Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
- Xml::fieldset( $this->msg( 'categories' )->text(),
- Xml::inputLabel( $this->msg( 'categoriesfrom' )->text(),
- 'from', 'from', 20, $from ) .
- ' ' .
- Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) ) );
+ protected function getHTMLFormFields() {
+ return array(
+ 'From' => array(
+ 'type' => 'text',
+ 'label-message' => 'categoriesfrom',
+ 'size' => '20',
+ ),
+ );
+ }
+
+ protected function getHTMLFormLegend() {
+ return 'categories';
+ }
+
+ protected function getHTMLFormSubmit() {
+ return 'allpagessubmit';
}
}