MediaWiki
REL1_24
|
Maintenance script to rebuild the localisation cache. More...
Public Member Functions | |
__construct () | |
execute () | |
finalSetup () | |
Handle some last-minute setup here. | |
memoryLimit () | |
Normally we disable the memory_limit when running admin scripts. | |
setForce ($forced=true) | |
Sets whether a run of this maintenance script has the force parameter set. | |
Private Member Functions | |
doRebuild ($codes, $lc, $force) | |
Helper function to rebuild list of languages codes. |
Maintenance script to rebuild the localisation cache.
Definition at line 39 of file rebuildLocalisationCache.php.
Reimplemented from Maintenance.
Definition at line 40 of file rebuildLocalisationCache.php.
References Maintenance\addOption().
RebuildLocalisationCache::doRebuild | ( | $ | codes, |
$ | lc, | ||
$ | force | ||
) | [private] |
Helper function to rebuild list of languages codes.
Prints the code for each language which is rebuilt.
array | $codes | List of language codes to rebuild. |
LocalisationCache | $lc | Instance of LocalisationCacheBulkLoad (?) |
bool | $force | Rebuild up-to-date languages |
Definition at line 157 of file rebuildLocalisationCache.php.
References as, and Maintenance\output().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 68 of file rebuildLocalisationCache.php.
References $total, array(), as, doRebuild(), Maintenance\error(), Language\fetchLanguageNames(), Maintenance\getOption(), global, Maintenance\hasOption(), Maintenance\output(), and wfIsWindows().
Handle some last-minute setup here.
Reimplemented from Maintenance.
Definition at line 59 of file rebuildLocalisationCache.php.
References global.
Normally we disable the memory_limit when running admin scripts.
Some scripts may wish to actually set a limit, however, to avoid blowing up unexpectedly. We also support a --memory-limit option, to allow sysadmins to explicitly set one if they'd prefer to override defaults (or for people using Suhosin which yells at you for trying to disable the limits)
Reimplemented from Maintenance.
Definition at line 51 of file rebuildLocalisationCache.php.
References Maintenance\hasOption().
RebuildLocalisationCache::setForce | ( | $ | forced = true | ) |
Sets whether a run of this maintenance script has the force parameter set.
bool | $forced |
Definition at line 175 of file rebuildLocalisationCache.php.