PreferencesForm Class Reference
[SpecialPage]

Preferences form handling This object will show the preferences form and can save it as well. More...

List of all members.

Public Member Functions

 __construct (&$request)
 Constructor Load some values.
 execute ()
 validateInt (&$val, $min=0, $max=0x7fffffff)
 private
 validateFloat (&$val, $min, $max=0x7fffffff)
 private
 validateIntOrNull (&$val, $min=0, $max=0x7fffffff)
 private
 validateDate ($val)
 private
 validateTimeZone ($tz, $s)
 Used to validate the user inputed timezone before saving it as 'timecorrection', will return 'System' if fed bogus data.
 validateGender ($val)
 savePreferences ()
 private
 resetPrefs ()
 private
 restorePreferences ()
 private
 namespacesCheckboxes ()
 private
 getToggle ($tname, $trailer=false, $disabled=false)
 getToggles ($items)
 addRow ($td1, $td2)
 tableRow ($td1, $td2=null, $td3=null)
 Helper function for user information panel.
 mainPrefsForm ($status, $message= '')
 private

Public Attributes

 $mQuickbar
 $mStubs
 $mRows
 $mCols
 $mSkin
 $mMath
 $mDate
 $mUserEmail
 $mEmailFlag
 $mNick
 $mUserLanguage
 $mUserVariant
 $mSearch
 $mRecent
 $mRecentDays
 $mTimeZone
 $mHourDiff
 $mSearchLines
 $mSearchChars
 $mAction
 $mReset
 $mPosted
 $mToggles
 $mSearchNs
 $mRealName
 $mImageSize
 $mUnderline
 $mWatchlistEdits
 $mGender


Detailed Description

Preferences form handling This object will show the preferences form and can save it as well.

Definition at line 23 of file SpecialPreferences.php.


Constructor & Destructor Documentation

PreferencesForm::__construct ( &$  request  ) 

Constructor Load some values.

Definition at line 35 of file SpecialPreferences.php.

References $i, $wgAllowRealName, $wgContLang, $wgUser, getToggles(), Skin::normalizeKey(), and wfRunHooks().


Member Function Documentation

PreferencesForm::addRow ( td1,
td2 
)

Definition at line 520 of file SpecialPreferences.php.

Referenced by mainPrefsForm().

PreferencesForm::execute (  ) 

PreferencesForm::getToggle ( tname,
trailer = false,
disabled = false 
)

Definition at line 491 of file SpecialPreferences.php.

References $wgLang, and $wgUser.

Referenced by getToggles(), and mainPrefsForm().

PreferencesForm::getToggles ( items  ) 

Definition at line 504 of file SpecialPreferences.php.

References $key, $out, and getToggle().

Referenced by __construct(), mainPrefsForm(), and resetPrefs().

PreferencesForm::mainPrefsForm ( status,
message = '' 
)

PreferencesForm::namespacesCheckboxes (  ) 

private

Definition at line 469 of file SpecialPreferences.php.

References $i, $name, $wgContLang, and wfMsg().

Referenced by mainPrefsForm().

PreferencesForm::resetPrefs (  ) 

PreferencesForm::restorePreferences (  ) 

private

Definition at line 457 of file SpecialPreferences.php.

References $title, $wgOut, $wgUser, and SpecialPage::getTitleFor().

Referenced by execute().

PreferencesForm::savePreferences (  ) 

PreferencesForm::tableRow ( td1,
td2 = null,
td3 = null 
)

Helper function for user information panel.

Parameters:
$td1 label for an item
$td2 item or null
$td3 optional help or null
Returns:
xhtml block

Definition at line 531 of file SpecialPreferences.php.

References Xml::tags().

Referenced by mainPrefsForm().

PreferencesForm::validateDate ( val  ) 

private

Definition at line 164 of file SpecialPreferences.php.

References $wgContLang, and $wgLang.

Referenced by savePreferences().

PreferencesForm::validateFloat ( &$  val,
min,
max = 0x7fffffff 
)

private

Definition at line 142 of file SpecialPreferences.php.

Referenced by savePreferences().

PreferencesForm::validateGender ( val  ) 

Definition at line 211 of file SpecialPreferences.php.

References User::getDefaultOption().

Referenced by savePreferences().

PreferencesForm::validateInt ( &$  val,
min = 0,
max = 0x7fffffff 
)

private

Definition at line 132 of file SpecialPreferences.php.

Referenced by savePreferences(), and validateIntOrNull().

PreferencesForm::validateIntOrNull ( &$  val,
min = 0,
max = 0x7fffffff 
)

private

Definition at line 152 of file SpecialPreferences.php.

References validateInt().

Referenced by savePreferences().

PreferencesForm::validateTimeZone ( tz,
s 
)

Used to validate the user inputed timezone before saving it as 'timecorrection', will return 'System' if fed bogus data.

private

Parameters:
string $tz the user input Zoneinfo timezone
string $s the user input offset string
Returns:
string

Definition at line 184 of file SpecialPreferences.php.

References $s.

Referenced by savePreferences().


Member Data Documentation

PreferencesForm::$mAction

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mCols

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mDate

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mEmailFlag

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mGender

Definition at line 29 of file SpecialPreferences.php.

PreferencesForm::$mHourDiff

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mImageSize

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mMath

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mNick

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mPosted

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mQuickbar

Definition at line 24 of file SpecialPreferences.php.

PreferencesForm::$mRealName

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mRecent

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mRecentDays

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mReset

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mRows

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mSearch

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mSearchChars

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mSearchLines

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mSearchNs

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mSkin

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mStubs

Definition at line 24 of file SpecialPreferences.php.

PreferencesForm::$mTimeZone

Definition at line 27 of file SpecialPreferences.php.

PreferencesForm::$mToggles

Definition at line 28 of file SpecialPreferences.php.

PreferencesForm::$mUnderline

Definition at line 29 of file SpecialPreferences.php.

PreferencesForm::$mUserEmail

Definition at line 25 of file SpecialPreferences.php.

PreferencesForm::$mUserLanguage

Definition at line 26 of file SpecialPreferences.php.

PreferencesForm::$mUserVariant

Definition at line 26 of file SpecialPreferences.php.

PreferencesForm::$mWatchlistEdits

Definition at line 29 of file SpecialPreferences.php.


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

Generated on Sat Sep 5 02:08:44 2009 for MediaWiki by  doxygen 1.5.9