MediaWiki  REL1_20
PreferencesForm Class Reference

Some tweaks to allow js prefs to work. More...

Inheritance diagram for PreferencesForm:
Collaboration diagram for PreferencesForm:

List of all members.

Public Member Functions

 filterDataForSubmit ($data)
 getBody ()
 Get the whole body of the form.
 getButtons ()
 getExtraSuccessRedirectParameters ()
 Get extra parameters for the query string when redirecting after successful save.
 getLegend ($key)
 Get the "<legend>" for a given section key.
 getModifiedUser ()
 setModifiedUser ($user)
 wrapForm ($html)

Protected Attributes

 $mSubSectionBeforeFields = false
 If true, sections that contain both fields and subsections will render their subsections before their fields.

Private Attributes

 $modifiedUser

Detailed Description

Some tweaks to allow js prefs to work.

Definition at line 1504 of file Preferences.php.


Member Function Documentation

Parameters:
$dataarray
Returns:
array

Reimplemented from HTMLForm.

Definition at line 1567 of file Preferences.php.

References $options, and HTMLFormField\flattenOptions().

Get the whole body of the form.

Returns:
string

Reimplemented from HTMLForm.

Definition at line 1591 of file Preferences.php.

References HTMLForm\displaySection().

Returns:
String

Reimplemented from HTMLForm.

Definition at line 1551 of file Preferences.php.

References $t, SpecialPage\getTitleFor(), Linker\link(), ContextSource\msg(), and Xml\tags().

Get extra parameters for the query string when redirecting after successful save.

Returns:
array()

Definition at line 1534 of file Preferences.php.

Get the "<legend>" for a given section key.

Normally this is the prefs-$key message but we'll allow extensions to override it.

Parameters:
$keystring
Returns:
string

Reimplemented from HTMLForm.

Definition at line 1601 of file Preferences.php.

References wfRunHooks().

Returns:
User

Definition at line 1520 of file Preferences.php.

References ContextSource\getUser().

Parameters:
$userUser

Definition at line 1513 of file Preferences.php.

References $user.

Parameters:
$htmlstring
Returns:
String

Reimplemented from HTMLForm.

Definition at line 1542 of file Preferences.php.

References Xml\tags().


Member Data Documentation

PreferencesForm::$modifiedUser [private]

Definition at line 1508 of file Preferences.php.

PreferencesForm::$mSubSectionBeforeFields = false [protected]

If true, sections that contain both fields and subsections will render their subsections before their fields.

Subclasses may set this to false to render subsections after fields instead.

Reimplemented from HTMLForm.

Definition at line 1506 of file Preferences.php.


The documentation for this class was generated from the following file: