From edbe38fb2bbea2748e69225a7af4b7443ab03584 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 21 Oct 2022 14:32:05 +0200 Subject: [PATCH] Sync tutorial-series --- .../BirthdayPersonAddFormListener.class.php | 6 +++--- ...aySortFieldPersonListPageListener.class.php | 4 ++-- .../cache/runtime/PersonRuntimeCache.class.php | 4 ++-- .../manager/PersonCommentManager.class.php | 4 ++-- .../page/handler/PersonPageHandler.class.php | 4 ++-- .../box/PersonListBoxController.class.php | 4 ++-- .../cache/runtime/PersonRuntimeCache.class.php | 4 ++-- .../manager/PersonCommentManager.class.php | 4 ++-- ...sonFirstNameTextPropertyCondition.class.php | 4 ++-- ...rsonLastNameTextPropertyCondition.class.php | 4 ++-- .../page/handler/PersonPageHandler.class.php | 4 ++-- .../box/PersonListBoxController.class.php | 4 ++-- .../cache/runtime/PersonRuntimeCache.class.php | 4 ++-- .../manager/PersonCommentManager.class.php | 4 ++-- ...sonFirstNameTextPropertyCondition.class.php | 4 ++-- ...rsonLastNameTextPropertyCondition.class.php | 4 ++-- ...onPruneIpAddressesCronjobListener.class.php | 4 ++-- .../PersonUserActionRenameListener.class.php | 4 ++-- .../PersonUserExportGdprListener.class.php | 4 ++-- .../listener/PersonUserMergeListener.class.php | 4 ++-- .../page/handler/PersonPageHandler.class.php | 4 ++-- .../worker/PersonRebuildDataWorker.class.php | 10 +++++----- .../box/PersonListBoxController.class.php | 4 ++-- .../cache/runtime/PersonRuntimeCache.class.php | 4 ++-- .../manager/PersonCommentManager.class.php | 4 ++-- ...sonFirstNameTextPropertyCondition.class.php | 4 ++-- ...rsonLastNameTextPropertyCondition.class.php | 4 ++-- ...onPruneIpAddressesCronjobListener.class.php | 4 ++-- .../PersonUserActionRenameListener.class.php | 4 ++-- ...intItemsRebuildDataWorkerListener.class.php | 18 +++++++++--------- .../PersonUserExportGdprListener.class.php | 4 ++-- .../listener/PersonUserMergeListener.class.php | 4 ++-- .../page/handler/PersonPageHandler.class.php | 4 ++-- ...ersonInformationUserActivityEvent.class.php | 4 ++-- ...ersonInformationRebuildDataWorker.class.php | 4 ++-- .../worker/PersonRebuildDataWorker.class.php | 10 +++++----- 36 files changed, 86 insertions(+), 86 deletions(-) diff --git a/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdayPersonAddFormListener.class.php b/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdayPersonAddFormListener.class.php index 29b44ecd..7250d162 100644 --- a/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdayPersonAddFormListener.class.php +++ b/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdayPersonAddFormListener.class.php @@ -11,19 +11,19 @@ use wcf\system\form\builder\field\DateFormField; * Handles setting the birthday when adding and editing people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class BirthdayPersonAddFormListener extends AbstractEventListener +final class BirthdayPersonAddFormListener extends AbstractEventListener { /** * @see AbstractFormBuilderForm::createForm() */ protected function onCreateForm(PersonAddForm $form): void { - /** @var FormContainer $dataContainer */ $dataContainer = $form->form->getNodeById('data'); + \assert($dataContainer instanceof FormContainer); $dataContainer->appendChild( DateFormField::create('birthday') ->label('wcf.person.birthday') diff --git a/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdaySortFieldPersonListPageListener.class.php b/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdaySortFieldPersonListPageListener.class.php index f61d1ca8..c7b9b0af 100644 --- a/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdaySortFieldPersonListPageListener.class.php +++ b/snippets/tutorial/tutorial-series/part-2/files/lib/system/event/listener/BirthdaySortFieldPersonListPageListener.class.php @@ -8,11 +8,11 @@ use wcf\page\SortablePage; * Makes people's birthday a valid sort field in the ACP and the front end. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class BirthdaySortFieldPersonListPageListener extends AbstractEventListener +final class BirthdaySortFieldPersonListPageListener extends AbstractEventListener { /** * @see SortablePage::validateSortField() diff --git a/snippets/tutorial/tutorial-series/part-3/files/lib/system/cache/runtime/PersonRuntimeCache.class.php b/snippets/tutorial/tutorial-series/part-3/files/lib/system/cache/runtime/PersonRuntimeCache.class.php index 1f9a67f8..b81bcc36 100644 --- a/snippets/tutorial/tutorial-series/part-3/files/lib/system/cache/runtime/PersonRuntimeCache.class.php +++ b/snippets/tutorial/tutorial-series/part-3/files/lib/system/cache/runtime/PersonRuntimeCache.class.php @@ -9,7 +9,7 @@ use wcf\data\person\PersonList; * Runtime cache implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Cache\Runtime * @@ -17,7 +17,7 @@ use wcf\data\person\PersonList; * @method Person getObject($objectID) * @method Person[] getObjects(array $objectIDs) */ -class PersonRuntimeCache extends AbstractRuntimeCache +final class PersonRuntimeCache extends AbstractRuntimeCache { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-3/files/lib/system/comment/manager/PersonCommentManager.class.php b/snippets/tutorial/tutorial-series/part-3/files/lib/system/comment/manager/PersonCommentManager.class.php index 6cbad9d9..d658d2d3 100644 --- a/snippets/tutorial/tutorial-series/part-3/files/lib/system/comment/manager/PersonCommentManager.class.php +++ b/snippets/tutorial/tutorial-series/part-3/files/lib/system/comment/manager/PersonCommentManager.class.php @@ -11,11 +11,11 @@ use wcf\system\WCF; * Comment manager implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Comment\Manager */ -class PersonCommentManager extends AbstractCommentManager +final class PersonCommentManager extends AbstractCommentManager { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-3/files/lib/system/page/handler/PersonPageHandler.class.php b/snippets/tutorial/tutorial-series/part-3/files/lib/system/page/handler/PersonPageHandler.class.php index 353900bb..94a41360 100644 --- a/snippets/tutorial/tutorial-series/part-3/files/lib/system/page/handler/PersonPageHandler.class.php +++ b/snippets/tutorial/tutorial-series/part-3/files/lib/system/page/handler/PersonPageHandler.class.php @@ -13,11 +13,11 @@ use wcf\system\WCF; * Page handler implementation for person page. * * @author Matthias Schmidt - * @copyright 2001-2019 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Page\Handler */ -class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler +final class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler { use TOnlineLocationPageHandler; diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/box/PersonListBoxController.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/box/PersonListBoxController.class.php index 7d785a9c..5b5e8b6f 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/box/PersonListBoxController.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/box/PersonListBoxController.class.php @@ -9,11 +9,11 @@ use wcf\system\WCF; * Dynamic box controller implementation for a list of persons. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Box */ -class PersonListBoxController extends AbstractDatabaseObjectListBoxController +final class PersonListBoxController extends AbstractDatabaseObjectListBoxController { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/cache/runtime/PersonRuntimeCache.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/cache/runtime/PersonRuntimeCache.class.php index 1f9a67f8..b81bcc36 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/cache/runtime/PersonRuntimeCache.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/cache/runtime/PersonRuntimeCache.class.php @@ -9,7 +9,7 @@ use wcf\data\person\PersonList; * Runtime cache implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Cache\Runtime * @@ -17,7 +17,7 @@ use wcf\data\person\PersonList; * @method Person getObject($objectID) * @method Person[] getObjects(array $objectIDs) */ -class PersonRuntimeCache extends AbstractRuntimeCache +final class PersonRuntimeCache extends AbstractRuntimeCache { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/comment/manager/PersonCommentManager.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/comment/manager/PersonCommentManager.class.php index 6cbad9d9..d658d2d3 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/comment/manager/PersonCommentManager.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/comment/manager/PersonCommentManager.class.php @@ -11,11 +11,11 @@ use wcf\system\WCF; * Comment manager implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Comment\Manager */ -class PersonCommentManager extends AbstractCommentManager +final class PersonCommentManager extends AbstractCommentManager { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php index 38ae076a..95ab7244 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the first name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php index 8c063144..c3fd95dc 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the last name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-4/files/lib/system/page/handler/PersonPageHandler.class.php b/snippets/tutorial/tutorial-series/part-4/files/lib/system/page/handler/PersonPageHandler.class.php index 353900bb..94a41360 100644 --- a/snippets/tutorial/tutorial-series/part-4/files/lib/system/page/handler/PersonPageHandler.class.php +++ b/snippets/tutorial/tutorial-series/part-4/files/lib/system/page/handler/PersonPageHandler.class.php @@ -13,11 +13,11 @@ use wcf\system\WCF; * Page handler implementation for person page. * * @author Matthias Schmidt - * @copyright 2001-2019 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Page\Handler */ -class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler +final class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler { use TOnlineLocationPageHandler; diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/box/PersonListBoxController.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/box/PersonListBoxController.class.php index 7d785a9c..5b5e8b6f 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/box/PersonListBoxController.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/box/PersonListBoxController.class.php @@ -9,11 +9,11 @@ use wcf\system\WCF; * Dynamic box controller implementation for a list of persons. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Box */ -class PersonListBoxController extends AbstractDatabaseObjectListBoxController +final class PersonListBoxController extends AbstractDatabaseObjectListBoxController { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/cache/runtime/PersonRuntimeCache.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/cache/runtime/PersonRuntimeCache.class.php index 1f9a67f8..b81bcc36 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/cache/runtime/PersonRuntimeCache.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/cache/runtime/PersonRuntimeCache.class.php @@ -9,7 +9,7 @@ use wcf\data\person\PersonList; * Runtime cache implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Cache\Runtime * @@ -17,7 +17,7 @@ use wcf\data\person\PersonList; * @method Person getObject($objectID) * @method Person[] getObjects(array $objectIDs) */ -class PersonRuntimeCache extends AbstractRuntimeCache +final class PersonRuntimeCache extends AbstractRuntimeCache { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/comment/manager/PersonCommentManager.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/comment/manager/PersonCommentManager.class.php index 6cbad9d9..d658d2d3 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/comment/manager/PersonCommentManager.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/comment/manager/PersonCommentManager.class.php @@ -11,11 +11,11 @@ use wcf\system\WCF; * Comment manager implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Comment\Manager */ -class PersonCommentManager extends AbstractCommentManager +final class PersonCommentManager extends AbstractCommentManager { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php index 38ae076a..95ab7244 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the first name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php index 8c063144..c3fd95dc 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the last name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php index a854da0e..7728ef21 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php @@ -8,11 +8,11 @@ use wcf\system\cronjob\PruneIpAddressesCronjob; * Prunes old ip addresses. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonPruneIpAddressesCronjobListener extends AbstractEventListener +final class PersonPruneIpAddressesCronjobListener extends AbstractEventListener { protected function onExecute(PruneIpAddressesCronjob $cronjob): void { diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserActionRenameListener.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserActionRenameListener.class.php index e18384e1..8487ab0b 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserActionRenameListener.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserActionRenameListener.class.php @@ -6,11 +6,11 @@ namespace wcf\system\event\listener; * Updates person information during user renaming. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserActionRenameListener extends AbstractUserActionRenameListener +final class PersonUserActionRenameListener extends AbstractUserActionRenameListener { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserExportGdprListener.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserExportGdprListener.class.php index 6d76addd..b4a4560f 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserExportGdprListener.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserExportGdprListener.class.php @@ -8,11 +8,11 @@ use wcf\acp\action\UserExportGdprAction; * Adds the ip addresses stored with the person information during user data export. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserExportGdprListener extends AbstractEventListener +final class PersonUserExportGdprListener extends AbstractEventListener { protected function onExport(UserExportGdprAction $action): void { diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserMergeListener.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserMergeListener.class.php index f66467ed..cd894799 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserMergeListener.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/event/listener/PersonUserMergeListener.class.php @@ -6,11 +6,11 @@ namespace wcf\system\event\listener; * Updates person information during user merging. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserMergeListener extends AbstractUserMergeListener +final class PersonUserMergeListener extends AbstractUserMergeListener { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/page/handler/PersonPageHandler.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/page/handler/PersonPageHandler.class.php index 353900bb..94a41360 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/page/handler/PersonPageHandler.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/page/handler/PersonPageHandler.class.php @@ -13,11 +13,11 @@ use wcf\system\WCF; * Page handler implementation for person page. * * @author Matthias Schmidt - * @copyright 2001-2019 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Page\Handler */ -class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler +final class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler { use TOnlineLocationPageHandler; diff --git a/snippets/tutorial/tutorial-series/part-5/files/lib/system/worker/PersonRebuildDataWorker.class.php b/snippets/tutorial/tutorial-series/part-5/files/lib/system/worker/PersonRebuildDataWorker.class.php index e85c7324..a06fe677 100644 --- a/snippets/tutorial/tutorial-series/part-5/files/lib/system/worker/PersonRebuildDataWorker.class.php +++ b/snippets/tutorial/tutorial-series/part-5/files/lib/system/worker/PersonRebuildDataWorker.class.php @@ -9,13 +9,13 @@ use wcf\system\WCF; * Worker implementation for updating people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Worker * * @method PersonList getObjectList() */ -class PersonRebuildDataWorker extends AbstractRebuildDataWorker +final class PersonRebuildDataWorker extends AbstractRebuildDataWorker { /** * @inheritDoc @@ -48,14 +48,14 @@ class PersonRebuildDataWorker extends AbstractRebuildDataWorker return; } - $sql = "UPDATE wcf" . WCF_N . "_person person + $sql = "UPDATE wcf1_person person SET informationCount = ( SELECT COUNT(*) - FROM wcf" . WCF_N . "_person_information person_information + FROM wcf1_person_information person_information WHERE person_information.personID = person.personID ) WHERE person.personID = ?"; - $statement = WCF::getDB()->prepareStatement($sql); + $statement = WCF::getDB()->prepare($sql); WCF::getDB()->beginTransaction(); foreach ($this->getObjectList() as $person) { diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/box/PersonListBoxController.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/box/PersonListBoxController.class.php index 7d785a9c..5b5e8b6f 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/box/PersonListBoxController.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/box/PersonListBoxController.class.php @@ -9,11 +9,11 @@ use wcf\system\WCF; * Dynamic box controller implementation for a list of persons. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Box */ -class PersonListBoxController extends AbstractDatabaseObjectListBoxController +final class PersonListBoxController extends AbstractDatabaseObjectListBoxController { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/cache/runtime/PersonRuntimeCache.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/cache/runtime/PersonRuntimeCache.class.php index 1f9a67f8..b81bcc36 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/cache/runtime/PersonRuntimeCache.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/cache/runtime/PersonRuntimeCache.class.php @@ -9,7 +9,7 @@ use wcf\data\person\PersonList; * Runtime cache implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Cache\Runtime * @@ -17,7 +17,7 @@ use wcf\data\person\PersonList; * @method Person getObject($objectID) * @method Person[] getObjects(array $objectIDs) */ -class PersonRuntimeCache extends AbstractRuntimeCache +final class PersonRuntimeCache extends AbstractRuntimeCache { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/comment/manager/PersonCommentManager.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/comment/manager/PersonCommentManager.class.php index 6cbad9d9..d658d2d3 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/comment/manager/PersonCommentManager.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/comment/manager/PersonCommentManager.class.php @@ -11,11 +11,11 @@ use wcf\system\WCF; * Comment manager implementation for people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Comment\Manager */ -class PersonCommentManager extends AbstractCommentManager +final class PersonCommentManager extends AbstractCommentManager { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php index 38ae076a..95ab7244 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonFirstNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the first name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonFirstNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php index 8c063144..c3fd95dc 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/condition/person/PersonLastNameTextPropertyCondition.class.php @@ -9,11 +9,11 @@ use wcf\system\condition\AbstractObjectTextPropertyCondition; * Condition implementation for the last name of a person. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license WoltLab License * @package WoltLabSuite\Core\System\Condition */ -class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition +final class PersonLastNameTextPropertyCondition extends AbstractObjectTextPropertyCondition { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php index a854da0e..7728ef21 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonPruneIpAddressesCronjobListener.class.php @@ -8,11 +8,11 @@ use wcf\system\cronjob\PruneIpAddressesCronjob; * Prunes old ip addresses. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonPruneIpAddressesCronjobListener extends AbstractEventListener +final class PersonPruneIpAddressesCronjobListener extends AbstractEventListener { protected function onExecute(PruneIpAddressesCronjob $cronjob): void { diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActionRenameListener.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActionRenameListener.class.php index e18384e1..8487ab0b 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActionRenameListener.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActionRenameListener.class.php @@ -6,11 +6,11 @@ namespace wcf\system\event\listener; * Updates person information during user renaming. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserActionRenameListener extends AbstractUserActionRenameListener +final class PersonUserActionRenameListener extends AbstractUserActionRenameListener { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActivityPointItemsRebuildDataWorkerListener.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActivityPointItemsRebuildDataWorkerListener.class.php index c2c2b057..e2cc463a 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActivityPointItemsRebuildDataWorkerListener.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserActivityPointItemsRebuildDataWorkerListener.class.php @@ -11,11 +11,11 @@ use wcf\system\worker\UserActivityPointItemsRebuildDataWorker; * Updates the user activity point items counter for person information. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserActivityPointItemsRebuildDataWorkerListener extends AbstractEventListener +final class PersonUserActivityPointItemsRebuildDataWorkerListener extends AbstractEventListener { protected function onExecute(UserActivityPointItemsRebuildDataWorker $worker): void { @@ -26,18 +26,18 @@ class PersonUserActivityPointItemsRebuildDataWorkerListener extends AbstractEven $conditionBuilder->add('user_activity_point.objectTypeID = ?', [$objectType->objectTypeID]); $conditionBuilder->add('user_activity_point.userID IN (?)', [$worker->getObjectList()->getObjectIDs()]); - $sql = "UPDATE wcf" . WCF_N . "_user_activity_point user_activity_point + $sql = "UPDATE wcf1_user_activity_point user_activity_point SET user_activity_point.items = ( SELECT COUNT(*) - FROM wcf" . WCF_N . "_person_information person_information + FROM wcf1_person_information person_information WHERE person_information.userID = user_activity_point.userID ), user_activity_point.activityPoints = user_activity_point.items * ? {$conditionBuilder}"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(\array_merge( - [$objectType->points], - $conditionBuilder->getParameters() - )); + $statement = WCF::getDB()->prepare($sql); + $statement->execute([ + $objectType->points, + ...$conditionBuilder->getParameters() + ]); } } diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserExportGdprListener.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserExportGdprListener.class.php index 6d76addd..b4a4560f 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserExportGdprListener.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserExportGdprListener.class.php @@ -8,11 +8,11 @@ use wcf\acp\action\UserExportGdprAction; * Adds the ip addresses stored with the person information during user data export. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserExportGdprListener extends AbstractEventListener +final class PersonUserExportGdprListener extends AbstractEventListener { protected function onExport(UserExportGdprAction $action): void { diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserMergeListener.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserMergeListener.class.php index f66467ed..cd894799 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserMergeListener.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/event/listener/PersonUserMergeListener.class.php @@ -6,11 +6,11 @@ namespace wcf\system\event\listener; * Updates person information during user merging. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Event\Listener */ -class PersonUserMergeListener extends AbstractUserMergeListener +final class PersonUserMergeListener extends AbstractUserMergeListener { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/page/handler/PersonPageHandler.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/page/handler/PersonPageHandler.class.php index 353900bb..94a41360 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/page/handler/PersonPageHandler.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/page/handler/PersonPageHandler.class.php @@ -13,11 +13,11 @@ use wcf\system\WCF; * Page handler implementation for person page. * * @author Matthias Schmidt - * @copyright 2001-2019 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Page\Handler */ -class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler +final class PersonPageHandler extends AbstractLookupPageHandler implements IOnlineLocationPageHandler { use TOnlineLocationPageHandler; diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/user/activity/event/PersonInformationUserActivityEvent.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/user/activity/event/PersonInformationUserActivityEvent.class.php index 3035bcac..ba53fc1a 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/user/activity/event/PersonInformationUserActivityEvent.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/user/activity/event/PersonInformationUserActivityEvent.class.php @@ -10,11 +10,11 @@ use wcf\system\WCF; * User activity event implementation for person information. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\User\Activity\Event */ -class PersonInformationUserActivityEvent extends SingletonFactory implements IUserActivityEvent +final class PersonInformationUserActivityEvent extends SingletonFactory implements IUserActivityEvent { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonInformationRebuildDataWorker.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonInformationRebuildDataWorker.class.php index d99c9584..7efc8cb7 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonInformationRebuildDataWorker.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonInformationRebuildDataWorker.class.php @@ -9,13 +9,13 @@ use wcf\system\user\activity\point\UserActivityPointHandler; * Worker implementation for updating person information. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Worker * * @method PersonInformationList getObjectList() */ -class PersonInformationRebuildDataWorker extends AbstractRebuildDataWorker +final class PersonInformationRebuildDataWorker extends AbstractRebuildDataWorker { /** * @inheritDoc diff --git a/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonRebuildDataWorker.class.php b/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonRebuildDataWorker.class.php index e85c7324..a06fe677 100644 --- a/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonRebuildDataWorker.class.php +++ b/snippets/tutorial/tutorial-series/part-6/files/lib/system/worker/PersonRebuildDataWorker.class.php @@ -9,13 +9,13 @@ use wcf\system\WCF; * Worker implementation for updating people. * * @author Matthias Schmidt - * @copyright 2001-2021 WoltLab GmbH + * @copyright 2001-2022 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Worker * * @method PersonList getObjectList() */ -class PersonRebuildDataWorker extends AbstractRebuildDataWorker +final class PersonRebuildDataWorker extends AbstractRebuildDataWorker { /** * @inheritDoc @@ -48,14 +48,14 @@ class PersonRebuildDataWorker extends AbstractRebuildDataWorker return; } - $sql = "UPDATE wcf" . WCF_N . "_person person + $sql = "UPDATE wcf1_person person SET informationCount = ( SELECT COUNT(*) - FROM wcf" . WCF_N . "_person_information person_information + FROM wcf1_person_information person_information WHERE person_information.personID = person.personID ) WHERE person.personID = ?"; - $statement = WCF::getDB()->prepareStatement($sql); + $statement = WCF::getDB()->prepare($sql); WCF::getDB()->beginTransaction(); foreach ($this->getObjectList() as $person) { -- 2.20.1