MediaWiki
REL1_40
EditWatchlistNormalHTMLForm.php
Go to the documentation of this file.
1
<?php
24
class
EditWatchlistNormalHTMLForm
extends
OOUIHTMLForm
{
25
public
function
getLegend
( $namespace ) {
26
$namespace = (int)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
}
NS_MAIN
const NS_MAIN
Definition
Defines.php:64
ContextSource\msg
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
Definition
ContextSource.php:198
ContextSource\getContext
getContext()
Get the base IContextSource object.
Definition
ContextSource.php:48
EditWatchlistNormalHTMLForm
Extend OOUIHTMLForm purely so we can have a more sensible way of getting the section headers.
Definition
EditWatchlistNormalHTMLForm.php:24
EditWatchlistNormalHTMLForm\displaySection
displaySection( $fields, $sectionName='', $fieldsetIDPrefix='', &$hasUserVisibleFields=false)
Definition
EditWatchlistNormalHTMLForm.php:33
EditWatchlistNormalHTMLForm\getLegend
getLegend( $namespace)
Get a string to go in the "<legend>" of a section fieldset.
Definition
EditWatchlistNormalHTMLForm.php:25
OOUIHTMLForm
Compact stacked vertical format for forms, implemented using OOUI widgets.
Definition
OOUIHTMLForm.php:32
includes
specials
forms
EditWatchlistNormalHTMLForm.php
Generated on Thu Jun 27 2024 14:04:14 for MediaWiki by
1.10.0