MediaWiki
REL1_30
EditWatchlistNormalHTMLForm.php
Go to the documentation of this file.
1
<?php
24
class
EditWatchlistNormalHTMLForm
extends
HTMLForm
{
25
public
function
getLegend
( $namespace ) {
26
$namespace = substr( $namespace, 2 );
27
28
return
$namespace ==
NS_MAIN
29
? $this->
msg
(
'blanknamespace'
)->escaped()
30
: htmlspecialchars( $this->
getContext
()->
getLanguage
()->getFormattedNsText( $namespace ) );
31
}
32
33
public
function
getBody
() {
34
return
$this->
displaySection
( $this->mFieldTree,
''
,
'editwatchlist-'
);
35
}
36
}
ContextSource\msg
msg( $key)
Get a Message object with context set Parameters are the same as wfMessage()
Definition
ContextSource.php:189
ContextSource\getLanguage
getLanguage()
Get the Language object.
Definition
ContextSource.php:143
ContextSource\getContext
getContext()
Get the base IContextSource object.
Definition
ContextSource.php:41
EditWatchlistNormalHTMLForm
Extend HTMLForm purely so we can have a more sane way of getting the section headers.
Definition
EditWatchlistNormalHTMLForm.php:24
EditWatchlistNormalHTMLForm\getBody
getBody()
Get the whole body of the form.
Definition
EditWatchlistNormalHTMLForm.php:33
EditWatchlistNormalHTMLForm\getLegend
getLegend( $namespace)
Get a string to go in the "<legend>" of a section fieldset.
Definition
EditWatchlistNormalHTMLForm.php:25
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms.
Definition
HTMLForm.php:128
HTMLForm\displaySection
displaySection( $fields, $sectionName='', $fieldsetIDPrefix='', &$hasUserVisibleFields=false)
Definition
HTMLForm.php:1634
NS_MAIN
const NS_MAIN
Definition
Defines.php:65
includes
specials
forms
EditWatchlistNormalHTMLForm.php
Generated on Mon Nov 25 2024 15:42:52 for MediaWiki by
1.10.0