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 | |
Definition at line 23 of file SpecialPreferences.php.
| 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().
| PreferencesForm::addRow | ( | $ | td1, | |
| $ | td2 | |||
| ) |
| PreferencesForm::execute | ( | ) |
Definition at line 106 of file SpecialPreferences.php.
References $wgOut, $wgTitle, $wgUser, mainPrefsForm(), resetPrefs(), restorePreferences(), savePreferences(), wfMsg(), and wfReadOnly().
| 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 = '' | |||
| ) |
private
Definition at line 556 of file SpecialPreferences.php.
References $action, $code, $i, $key, $name, $options, $rtl, $size, $status, $t, $wgAllowRealName, $wgAllowUserCss, $wgAllowUserJs, $wgAllowUserSkin, $wgAuth, $wgContLang, $wgContLanguageCode, $wgCookieExpiration, $wgDefaultSkin, $wgDisableLangConversion, $wgDisableTitleConversion, $wgEmailAuthentication, $wgEmailConfirmToEdit, $wgEnableEmail, $wgEnableMWSuggest, $wgEnableUserEmail, $wgEnotifMinorEdits, $wgEnotifRevealEditorAddress, $wgEnotifUserTalk, $wgEnotifWatchlist, $wgImageLimits, $wgLang, $wgLivePreview, $wgLocalTZoffset, $wgMaxSigChars, $wgOut, $wgParser, $wgRCMaxAge, $wgRCShowWatchingUsers, $wgThumbLimits, $wgUser, $wgUseRCPatrol, $wgUseTeX, addRow(), Xml::check(), Xml::closeElement(), Xml::element(), Xml::fieldset(), Language::getLanguageNames(), SpecialPage::getTitleFor(), getToggle(), getToggles(), Skin::getUsableSkins(), Xml::hidden(), Xml::input(), Xml::inputLabel(), Xml::label(), Xml::languageSelector(), User::makeGroupLinkHTML(), Title::makeTitleSafe(), namespacesCheckboxes(), Title::newMainPage(), Xml::openElement(), Xml::option(), Xml::radioLabel(), sort, tableRow(), Xml::tags(), wfEmptyMsg(), wfMsg(), wfMsgExt(), wfMsgHtml(), wfRunHooks(), and wfTimestampNow().
Referenced by execute(), and savePreferences().
| PreferencesForm::namespacesCheckboxes | ( | ) |
private
Definition at line 469 of file SpecialPreferences.php.
References $i, $name, $wgContLang, and wfMsg().
Referenced by mainPrefsForm().
| PreferencesForm::resetPrefs | ( | ) |
private
Definition at line 364 of file SpecialPreferences.php.
References $i, $wgAllowRealName, $wgContLang, $wgContLanguageCode, $wgLang, $wgLocalTZoffset, $wgUser, getToggles(), Skin::normalizeKey(), and wfRunHooks().
Referenced by execute().
| PreferencesForm::restorePreferences | ( | ) |
private
Definition at line 457 of file SpecialPreferences.php.
References $title, $wgOut, $wgUser, and SpecialPage::getTitleFor().
Referenced by execute().
| PreferencesForm::savePreferences | ( | ) |
private
Definition at line 223 of file SpecialPreferences.php.
References $error, $i, $msg, $result, $title, $wgAllowUserSkin, $wgAuth, $wgEmailAuthentication, $wgEmailConfirmToEdit, $wgEnableEmail, $wgEnableUserEmail, $wgLang, $wgMaxSigChars, $wgOut, $wgParser, $wgRCMaxAge, $wgUser, $wgUseTeX, SpecialPage::getTitleFor(), WikiError::isError(), mainPrefsForm(), ParserOptions::newFromUser(), validateDate(), validateFloat(), validateGender(), validateInt(), validateIntOrNull(), validateTimeZone(), wfMsg(), wfMsgExt(), and wfRunHooks().
Referenced by execute().
| PreferencesForm::tableRow | ( | $ | td1, | |
| $ | td2 = null, |
|||
| $ | td3 = null | |||
| ) |
Helper function for user information panel.
| $td1 | label for an item | |
| $td2 | item or null | |
| $td3 | optional help or null |
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 | |||
| ) |
| 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
| string | $tz the user input Zoneinfo timezone | |
| string | $s the user input offset string |
Definition at line 184 of file SpecialPreferences.php.
References $s.
Referenced by savePreferences().
| 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.
1.5.9