MediaWiki master
EditWatchlistNormalHTMLForm.php
Go to the documentation of this file.
1<?php
8
10
16 public function getLegend( $namespace ) {
17 $namespace = (int)substr( $namespace, 2 );
18 return $namespace == NS_MAIN
19 ? $this->msg( 'blanknamespace' )->text()
20 : $this->getContext()->getLanguage()->getFormattedNsText( $namespace );
21 }
22
24 public function displaySection(
25 $fields, $sectionName = '', $fieldsetIDPrefix = '', &$hasUserVisibleFields = false
26 ) {
27 return parent::displaySection( $fields, $sectionName, 'editwatchlist-', $hasUserVisibleFields );
28 }
29}
30
32class_alias( EditWatchlistNormalHTMLForm::class, 'EditWatchlistNormalHTMLForm' );
const NS_MAIN
Definition Defines.php:51
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
getContext()
Get the base IContextSource object.
Compact stacked vertical format for forms, implemented using OOUI widgets.
Extend OOUIHTMLForm purely so we can have a more sensible way of getting the section headers.
getLegend( $namespace)
Get a string to go in the "<legend>" of a section fieldset.Override this if you want something more c...
displaySection( $fields, $sectionName='', $fieldsetIDPrefix='', &$hasUserVisibleFields=false)
Document to overrideThrows an exception when called on uninitialized field data, e....