3 namespace wcf\system\worker
;
5 use wcf\data\file\FileList
;
6 use wcf\system\file\processor\FileProcessor
;
9 * Worker implementation for updating files.
11 * @author Alexander Ebert
12 * @copyright 2001-2014 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
16 * @method FileList getObjectList()
17 * @property-read FileList $objectList
19 final class FileRebuildDataWorker
extends AbstractLinearRebuildDataWorker
24 protected $objectListClassName = FileList
::class;
29 protected $limit = 10;
32 protected function initObjectList()
34 parent
::initObjectList();
36 $this->objectList
->sqlOrderBy
= 'file.fileID';
40 public function execute()
44 foreach ($this->objectList
as $file) {
45 FileProcessor
::getInstance()->generateWebpVariant($file);
46 FileProcessor
::getInstance()->generateThumbnails($file);