MediaWiki REL1_30
|
Public Member Functions | |
__construct ( $opts, $args) | |
Constructor. | |
run () | |
Dumb stuff to run a mode. | |
warn () | |
The warning message and countdown. | |
Static Public Member Functions | |
static | getDefaultOptionsNames () |
Return an array of option names. | |
static | showUsageAndExit () |
Public Attributes | |
$mAnOption | |
$mDry | |
$mNewValue | |
$mOldValue | |
$mQuick | |
$mQuiet | |
Private Member Functions | |
CHANGER () | |
Change our users options. | |
checkOpts ( $opts, $args) | |
This is used to check options. | |
initializeOpts ( $opts, $args) | |
load script options in the object | |
LISTER () | |
List default options and their value. | |
USAGER () | |
List options usage. | |
Private Attributes | |
$mMode | |
$mReady | |
Definition at line 33 of file userOptions.inc.
UserOptions::__construct | ( | $opts, | |
$args ) |
Constructor.
Will show usage and exit if script options are not correct
array | $opts | |
array | $args |
Definition at line 48 of file userOptions.inc.
References $args, checkOpts(), initializeOpts(), and showUsageAndExit().
|
private |
Change our users options.
Definition at line 192 of file userOptions.inc.
References $dbr, $username, DB_REPLICA, print, warn(), and wfGetDB().
|
private |
This is used to check options.
Only needed on construction
array | $opts | |
array | $args |
Definition at line 64 of file userOptions.inc.
References $args.
Referenced by __construct().
|
static |
Return an array of option names.
Definition at line 235 of file userOptions.inc.
References $ret.
|
private |
load script options in the object
array | $opts | |
array | $args |
Definition at line 84 of file userOptions.inc.
References $args.
Referenced by __construct().
|
private |
List default options and their value.
Definition at line 124 of file userOptions.inc.
UserOptions::run | ( | ) |
|
static |
Definition at line 245 of file userOptions.inc.
References list, options(), print, save, and settings.
Referenced by __construct().
|
private |
List options usage.
Definition at line 139 of file userOptions.inc.
References $dbr, $mAnOption, $name, $ret, $value, DB_REPLICA, print, and wfGetDB().
UserOptions::warn | ( | ) |
The warning message and countdown.
Definition at line 277 of file userOptions.inc.
References c, made, print, skin(), and wfCountDown().
Referenced by CHANGER().
UserOptions::$mAnOption |
Definition at line 37 of file userOptions.inc.
Referenced by USAGER().
UserOptions::$mDry |
Definition at line 36 of file userOptions.inc.
|
private |
Definition at line 41 of file userOptions.inc.
UserOptions::$mNewValue |
Definition at line 39 of file userOptions.inc.
UserOptions::$mOldValue |
Definition at line 38 of file userOptions.inc.
UserOptions::$mQuick |
Definition at line 34 of file userOptions.inc.
UserOptions::$mQuiet |
Definition at line 35 of file userOptions.inc.
|
private |
Definition at line 41 of file userOptions.inc.