X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildImages.php;h=df2ab042b1e85747ea191f02e5d9315adf5a46bd;hb=101493a70783b15656daa0686d404ac1a7a6976b;hp=bfbee9b65bf8c9cb8fa3a23ccfabda7b03f2300c;hpb=9bbb26ffbd16edbaccce27461730fa9e172aa048;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index bfbee9b65b..df2ab042b1 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -41,12 +41,32 @@ use Wikimedia\Rdbms\IMaintainableDatabase; * @ingroup Maintenance */ class ImageBuilder extends Maintenance { - /** * @var IMaintainableDatabase */ protected $dbw; + /** @var bool */ + private $dryrun; + + /** @var LocalRepo|null */ + private $repo; + + /** @var int */ + private $updated; + + /** @var int */ + private $processed; + + /** @var int */ + private $count; + + /** @var int */ + private $startTime; + + /** @var string */ + private $table; + function __construct() { parent::__construct(); @@ -79,7 +99,7 @@ class ImageBuilder extends Maintenance { * @return LocalRepo */ function getRepo() { - if ( !isset( $this->repo ) ) { + if ( $this->repo === null ) { $this->repo = RepoGroup::singleton()->getLocalRepo(); } @@ -91,6 +111,10 @@ class ImageBuilder extends Maintenance { $this->buildOldImage(); } + /** + * @param int $count + * @param string $table + */ function init( $count, $table ) { $this->processed = 0; $this->updated = 0;