MediaWiki
REL1_20
|
Maintenance script to update image metadata records. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
addMissingImage ($filename, $fullpath) | |
build () | |
buildImage () | |
buildOldImage () | |
buildTable ($table, $key, $callback) | |
checkMissingImage ($fullpath) | |
crawlMissing () | |
execute () | |
Do the actual work. | |
getRepo () | |
imageCallback ($row, $copy) | |
init ($count, $table) | |
oldimageCallback ($row, $copy) | |
progress ($updated) | |
Protected Attributes | |
DatabaseBase | $dbw |
Maintenance script to update image metadata records.
Definition at line 40 of file rebuildImages.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 46 of file rebuildImages.php.
References Maintenance\addOption().
ImageBuilder::addMissingImage | ( | $ | filename, |
$ | fullpath | ||
) |
Definition at line 185 of file rebuildImages.php.
References $file, $wgContLang, getRepo(), Maintenance\output(), and wfLocalFile().
Referenced by checkMissingImage().
Definition at line 84 of file rebuildImages.php.
References buildImage(), and buildOldImage().
Referenced by execute().
ImageBuilder::buildTable | ( | $ | table, |
$ | key, | ||
$ | callback | ||
) |
Definition at line 124 of file rebuildImages.php.
References $count, $result, init(), Maintenance\output(), progress(), and wfGetDB().
Referenced by buildImage(), and buildOldImage().
ImageBuilder::checkMissingImage | ( | $ | fullpath | ) |
Definition at line 173 of file rebuildImages.php.
References addMissingImage(), and wfBaseName().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 59 of file rebuildImages.php.
References build(), crawlMissing(), Maintenance\hasOption(), and wfGetDB().
Definition at line 77 of file rebuildImages.php.
Referenced by addMissingImage(), crawlMissing(), imageCallback(), and oldimageCallback().
ImageBuilder::imageCallback | ( | $ | row, |
$ | copy | ||
) |
Definition at line 147 of file rebuildImages.php.
ImageBuilder::init | ( | $ | count, |
$ | table | ||
) |
ImageBuilder::oldimageCallback | ( | $ | row, |
$ | copy | ||
) |
Definition at line 158 of file rebuildImages.php.
References $file, getRepo(), and Maintenance\output().
ImageBuilder::progress | ( | $ | updated | ) |
Definition at line 97 of file rebuildImages.php.
References Maintenance\output(), and wfTimestamp().
Referenced by buildTable().
DatabaseBase ImageBuilder::$dbw [protected] |
Definition at line 44 of file rebuildImages.php.