MediaWiki  master
EditWatchlistNormalHTMLForm.php
Go to the documentation of this file.
1 <?php
25  public function getLegend( $namespace ) {
26  $namespace = substr( $namespace, 2 );
27 
28  return $namespace == NS_MAIN
29  ? $this->msg( 'blanknamespace' )->text()
30  : $this->getContext()->getLanguage()->getFormattedNsText( $namespace );
31  }
32 
33  public function displaySection(
34  $fields, $sectionName = '', $fieldsetIDPrefix = '', &$hasUserVisibleFields = false
35  ) {
36  return parent::displaySection( $fields, $sectionName, 'editwatchlist-', $hasUserVisibleFields );
37  }
38 }
const NS_MAIN
Definition: Defines.php:60
Extend OOUIHTMLForm purely so we can have a more sane way of getting the section headers.
getContext()
Get the base IContextSource object.
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
Compact stacked vertical format for forms, implemented using OOUI widgets.
displaySection( $fields, $sectionName='', $fieldsetIDPrefix='', &$hasUserVisibleFields=false)