MediaWiki  REL1_22
RebuildLocalisationCache Class Reference

Maintenance script to rebuild the localisation cache. More...

Inheritance diagram for RebuildLocalisationCache:
Collaboration diagram for RebuildLocalisationCache:

List of all members.

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.

Detailed Description

Maintenance script to rebuild the localisation cache.

Definition at line 39 of file rebuildLocalisationCache.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 40 of file rebuildLocalisationCache.php.

References Maintenance\addOption().


Member Function Documentation

RebuildLocalisationCache::doRebuild ( codes,
lc,
force 
) [private]

Helper function to rebuild list of languages codes.

Prints the code for each language which is rebuilt.

Parameters:
$codesarray List of language codes to rebuild.
$lcLocalisationCache Instance of LocalisationCache_BulkLoad (?)
$forcebool Rebuild up-to-date languages
Returns:
int Number of rebuilt languages

Definition at line 156 of file rebuildLocalisationCache.php.

References as, and Maintenance\output().

Referenced by execute().

Handle some last-minute setup here.

Reimplemented from Maintenance.

Definition at line 58 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)

Returns:
string

Reimplemented from Maintenance.

Definition at line 51 of file rebuildLocalisationCache.php.

References Maintenance\hasOption().

Sets whether a run of this maintenance script has the force parameter set.

Parameters:
bool$forced

Definition at line 173 of file rebuildLocalisationCache.php.


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