MediaWiki
REL1_24
|
Maintenance script to update image metadata records. More...
Public Member Functions | |
__construct () | |
addMissingImage ($filename, $fullpath) | |
build () | |
buildImage () | |
buildOldImage () | |
buildTable ($table, $key, $callback) | |
checkMissingImage ($fullpath) | |
crawlMissing () | |
execute () | |
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.
Reimplemented from Maintenance.
Definition at line 46 of file rebuildImages.php.
References Maintenance\addOption(), and global.
ImageBuilder::addMissingImage | ( | $ | filename, |
$ | fullpath | ||
) |
Definition at line 189 of file rebuildImages.php.
References $file, $timestamp, $wgContLang, getRepo(), global, Maintenance\output(), and wfLocalFile().
Referenced by checkMissingImage().
Definition at line 85 of file rebuildImages.php.
References buildImage(), and buildOldImage().
Referenced by execute().
Definition at line 143 of file rebuildImages.php.
References array(), and buildTable().
Referenced by build().
Definition at line 156 of file rebuildImages.php.
References array(), and buildTable().
Referenced by build().
ImageBuilder::buildTable | ( | $ | table, |
$ | key, | ||
$ | callback | ||
) |
Definition at line 125 of file rebuildImages.php.
References $count, $result, array(), as, init(), Maintenance\output(), progress(), and wfGetDB().
Referenced by buildImage(), and buildOldImage().
ImageBuilder::checkMissingImage | ( | $ | fullpath | ) |
Definition at line 177 of file rebuildImages.php.
References addMissingImage(), array(), and wfBaseName().
Definition at line 173 of file rebuildImages.php.
References array(), and getRepo().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 59 of file rebuildImages.php.
References $GLOBALS, are, 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 148 of file rebuildImages.php.
ImageBuilder::init | ( | $ | count, |
$ | table | ||
) |
Definition at line 90 of file rebuildImages.php.
Referenced by buildTable().
ImageBuilder::oldimageCallback | ( | $ | row, |
$ | copy | ||
) |
Definition at line 160 of file rebuildImages.php.
References $file, getRepo(), and Maintenance\output().
ImageBuilder::progress | ( | $ | updated | ) |
Definition at line 98 of file rebuildImages.php.
References Maintenance\output(), table, and wfTimestamp().
Referenced by buildTable().
DatabaseBase ImageBuilder::$dbw [protected] |
Definition at line 44 of file rebuildImages.php.