|
MediaWiki
REL1_23
|
Public Member Functions | |
| __construct ($opts, $args) | |
| Constructor. | |
| run () | |
| 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 | |
| $mReady | |
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 | |
Definition at line 33 of file userOptions.inc.
| UserOptions::__construct | ( | $ | opts, |
| $ | args | ||
| ) |
Constructor.
Will show usage and exit if script options are not correct
Definition at line 44 of file userOptions.inc.
References checkOpts(), initializeOpts(), and showUsageAndExit().
| UserOptions::CHANGER | ( | ) | [private] |
| UserOptions::checkOpts | ( | $ | opts, |
| $ | args | ||
| ) | [private] |
This is used to check options.
Only needed on construction
| $opts | array |
| $args | array |
Definition at line 60 of file userOptions.inc.
Referenced by __construct().
| static UserOptions::getDefaultOptionsNames | ( | ) | [static] |
Return an array of option names.
Definition at line 227 of file userOptions.inc.
References $ret, array(), as, and User\getDefaultOptions().
| UserOptions::initializeOpts | ( | $ | opts, |
| $ | args | ||
| ) | [private] |
load script options in the object
| $opts | array |
| $args | array |
Definition at line 80 of file userOptions.inc.
Referenced by __construct().
| UserOptions::LISTER | ( | ) | [private] |
List default options and their value.
Definition at line 119 of file userOptions.inc.
References $value, as, and User\getDefaultOptions().
| UserOptions::run | ( | ) |
Definition at line 105 of file userOptions.inc.
| static UserOptions::showUsageAndExit | ( | ) | [static] |
| UserOptions::USAGER | ( | ) | [private] |
List options usage.
Definition at line 132 of file userOptions.inc.
References $count, $dbr, $defaultOptions, $name, $result, $ret, $user, $value, array(), as, User\getDefaultOptions(), User\newFromId(), print, and wfGetDB().
| UserOptions::$mAnOption |
Definition at line 37 of file userOptions.inc.
| UserOptions::$mDry |
Definition at line 36 of file userOptions.inc.
UserOptions::$mMode [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.
| UserOptions::$mReady |
Definition at line 41 of file userOptions.inc.