MediaWiki  REL1_20
ConvertUserOptions Class Reference

Maintenance script to convert user options to the new `user_properties` table. More...

Inheritance diagram for ConvertUserOptions:
Collaboration diagram for ConvertUserOptions:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 convertOptionBatch ($res, $dbw)
 execute ()
 Do the actual work.

Private Attributes

 $mConversionCount = 0

Detailed Description

Maintenance script to convert user options to the new `user_properties` table.

Do each user sequentially, since accounts can't be deleted

Definition at line 33 of file convertUserOptions.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 37 of file convertUserOptions.php.


Member Function Documentation

Parameters:
$res
$dbwDatabaseBase
Returns:
null|int

Definition at line 75 of file convertUserOptions.php.

References $res, and User\newFromRow().

Referenced by execute().

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 42 of file convertUserOptions.php.

References $res, convertOptionBatch(), Maintenance\output(), wfGetDB(), and wfWaitForSlaves().


Member Data Documentation

ConvertUserOptions::$mConversionCount = 0 [private]

Definition at line 35 of file convertUserOptions.php.


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