MediaWiki master
InitUserPreference Class Reference

Maintenance script that initializes a user preference based on the value of another preference. More...

Inherits Maintenance.

Collaboration diagram for InitUserPreference:

Public Member Functions

 __construct ()
 
 execute ()
 

Detailed Description

Maintenance script that initializes a user preference based on the value of another preference.

This is done by copying any non-empty (i.e. excluding 0 or null) value for a given source preference to be the value of the target preference. Only users with the value set will have the target preference set.

Definition at line 17 of file initUserPreference.php.

Constructor & Destructor Documentation

◆ __construct()

InitUserPreference::__construct ( )

Definition at line 18 of file initUserPreference.php.

Member Function Documentation

◆ execute()

InitUserPreference::execute ( )

Definition at line 37 of file initUserPreference.php.

References $source.


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