36 $this->modifiedUser =
$user;
43 if ( $this->modifiedUser ===
null ) {
65 $html = Xml::tags(
'div', [
'id' =>
'preferences' ],
$html );
67 return parent::wrapForm(
$html );
74 if ( !$this->
getModifiedUser()->isAllowedAny(
'editmyprivateinfo',
'editmyoptions' ) ) {
78 $html = parent::getButtons();
85 'id' =>
'mw-prefs-restoreprefs',
86 'label' => $this->
msg(
'restoreprefs' )->
text(),
87 'href' =>
$t->getLinkURL(),
88 'flags' => [
'destructive' ],
92 $html = Xml::tags(
'div', [
'class' =>
'mw-prefs-buttons' ],
$html );
105 foreach ( $this->mFlatFields as $fieldname => $field ) {
107 $info = $field->mParams;
109 foreach ( $field->filterDataForSubmit(
$data[$fieldname] ) as $key =>
$value ) {
120 $layout = parent::wrapFieldSetSection( $legend,
$section, $attributes, $isRoot );
122 $layout->addClasses( [
'mw-prefs-fieldset-wrapper' ] );
123 $layout->removeClasses( [
'oo-ui-panelLayout-framed' ] );
134 foreach ( $this->mFieldTree as $key => $val ) {
136 wfDebug( __METHOD__ .
" encountered a field not attached to a section: '$key'" );
143 $this->mFieldTree[$key],
145 "mw-prefsection-$key-"
150 'classes' => [
'mw-htmlform-autoinfuse-lazy' ],
151 'name' =>
'mw-prefsection-' . $key,
154 'classes' => [
'mw-prefs-section-fieldset' ],
155 'id' =>
"mw-prefsection-$key",
171 'autoFocus' =>
false,
172 'classes' => [
'mw-prefs-tabs' ],
174 $indexLayout->addTabPanels( $tabPanels );
179 'classes' => [
'mw-prefs-tabs-wrapper' ],
180 'content' => $indexLayout
191 $legend = parent::getLegend( $key );
192 Hooks::run(
'PreferencesGetLegend', [ $this, $key, &$legend ] );
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
msg( $key)
Get a Message object with context set Parameters are the same as wfMessage()
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
return true to allow those checks to and false if checking is done & $user
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)