[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> userOptions.inc (summary)

Helper class for userOptions.php script. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 297 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 maintenance/commandLine.inc

Defines 1 class

UserOptions:: (10 methods):
  __construct()
  checkOpts()
  initializeOpts()
  run()
  LISTER()
  USAGER()
  CHANGER()
  getDefaultOptionsNames()
  showUsageAndExit()
  warn()


Class: UserOptions  - X-Ref


__construct( $opts, $args )   X-Ref
Constructor. Will show usage and exit if script options are not correct

param: array $opts
param: array $args

checkOpts( $opts, $args )   X-Ref
This is used to check options. Only needed on construction

param: array $opts
param: array $args
return: bool

initializeOpts( $opts, $args )   X-Ref
load script options in the object

param: array $opts
param: array $args
return: bool

run()   X-Ref
No description

LISTER()   X-Ref
No description

USAGER()   X-Ref
No description

CHANGER()   X-Ref
No description

getDefaultOptionsNames()   X-Ref
Return an array of option names

return: array

showUsageAndExit()   X-Ref
No description

warn()   X-Ref
The warning message and countdown

return: bool



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1