* Worker implementation for database table encoding conversion.
*
* @author Alexander Ebert
- * @copyright 2001-2018 WoltLab GmbH
+ * @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\System\Worker
*/
-class DatabaseConvertEncodingWorker extends AbstractWorker {
+class DatabaseConvertEncodingWorker extends AbstractRebuildDataWorker {
/**
* @inheritDoc
*/
<?php
namespace wcf\system\worker;
+use wcf\data\DatabaseObjectList;
/**
* Every rebuild data worker has to implement this interface.
*
* @author Marcel Werk
- * @copyright 2001-2018 WoltLab GmbH
+ * @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\System\Worker
*/
/**
* Returns the list of objects.
*
- * @return \wcf\data\DatabaseObjectList
+ * @return DatabaseObjectList|null
*/
public function getObjectList();
}
* Worker implementation for rebuilding all sitemaps.
*
* @author Joshua Ruesweg
- * @copyright 2001-2018 WoltLab GmbH
+ * @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\System\Worker
* @since 3.1
*/
-class SitemapRebuildWorker extends AbstractWorker {
+class SitemapRebuildWorker extends AbstractRebuildDataWorker {
/**
* The limit of objects in one sitemap file.
*/
/**
* @inheritDoc
*/
- protected function countObjects() {
+ public function countObjects() {
// changes session owner to 'System' during the building of sitemaps
$this->changeUserToGuest();