$cap->doQuery();
$this->getOutput()->addHTML(
- Html::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) .
+ Html::openElement( 'div', [ 'class' => 'mw-spcontent' ] ) .
$this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() .
$cap->getStartForm( $from ) .
$cap->getNavigationBar() .
}
function getQueryInfo() {
- return array(
- 'tables' => array( 'category' ),
- 'fields' => array( 'cat_title', 'cat_pages' ),
- 'conds' => array( 'cat_pages > 0' ),
- 'options' => array( 'USE INDEX' => 'cat_title' ),
- );
+ return [
+ 'tables' => [ 'category' ],
+ 'fields' => [ 'cat_title', 'cat_pages' ],
+ 'conds' => [ 'cat_pages > 0' ],
+ 'options' => [ 'USE INDEX' => 'cat_title' ],
+ ];
}
function getIndexField() {
-# return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
+# return array( 'abc' => 'cat_title', 'count' => 'cat_pages' );
return 'cat_title';
}
return $this->mDefaultQuery;
}
-# protected function getOrderTypeMessages() {
-# return array( 'abc' => 'special-categories-sort-abc',
-# 'count' => 'special-categories-sort-count' );
-# }
+# protected function getOrderTypeMessages() {
+# return array( 'abc' => 'special-categories-sort-abc',
+# 'count' => 'special-categories-sort-count' );
+# }
protected function getDefaultDirections() {
-# return array( 'abc' => false, 'count' => true );
+# return array( 'abc' => false, 'count' => true );
return false;
}
public function getStartForm( $from ) {
return Xml::tags(
'form',
- array( 'method' => 'get', 'action' => wfScript() ),
+ [ 'method' => 'get', 'action' => wfScript() ],
Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
Xml::fieldset(
$this->msg( 'categories' )->text(),
Xml::inputLabel(
$this->msg( 'categoriesfrom' )->text(),
- 'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline' ) ) .
+ 'from', 'from', 20, $from, [ 'class' => 'mw-ui-input-inline' ] ) .
' ' .
Html::submitButton(
- $this->msg( 'allpagessubmit' )->text(),
- array(), array( 'mw-ui-progressive' )
+ $this->msg( 'categories-submit' )->text(),
+ [], [ 'mw-ui-progressive' ]
)
)
);