MediaWiki
REL1_22
|
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 185 of file rebuildImages.php.
References $file, $timestamp, $wgContLang, getRepo(), global, Maintenance\output(), and wfLocalFile().
Referenced by checkMissingImage().
Definition at line 84 of file rebuildImages.php.
References buildImage(), and buildOldImage().
Referenced by execute().
Definition at line 142 of file rebuildImages.php.
References array(), and buildTable().
Referenced by build().
Definition at line 154 of file rebuildImages.php.
References array(), and buildTable().
Referenced by build().
ImageBuilder::buildTable | ( | $ | table, |
$ | key, | ||
$ | callback | ||
) |
Definition at line 124 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 173 of file rebuildImages.php.
References addMissingImage(), array(), and wfBaseName().
Definition at line 169 of file rebuildImages.php.
References array(), and getRepo().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 59 of file rebuildImages.php.
References 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 147 of file rebuildImages.php.
ImageBuilder::init | ( | $ | count, |
$ | table | ||
) |
Definition at line 89 of file rebuildImages.php.
Referenced by buildTable().
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(), table, and wfTimestamp().
Referenced by buildTable().
DatabaseBase ImageBuilder::$dbw [protected] |
Definition at line 44 of file rebuildImages.php.