MediaWiki  REL1_22
ImageBuilder Class Reference

Maintenance script to update image metadata records. More...

Inheritance diagram for ImageBuilder:
Collaboration diagram for ImageBuilder:

List of all members.

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

Detailed Description

Maintenance script to update image metadata records.

Definition at line 40 of file rebuildImages.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 46 of file rebuildImages.php.

References Maintenance\addOption(), and global.


Member Function Documentation

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().

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().

ImageBuilder::imageCallback ( row,
copy 
)

Definition at line 147 of file rebuildImages.php.

References $file, and getRepo().

ImageBuilder::init ( count,
table 
)

Definition at line 89 of file rebuildImages.php.

References $count, and table.

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().


Member Data Documentation

DatabaseBase ImageBuilder::$dbw [protected]

Definition at line 44 of file rebuildImages.php.


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