Add source code for part 5 of tutorial series
[GitHub/WoltLab/woltlab.github.io.git] / snippets / tutorial / tutorial-series / part-5 / files / lib / system / event / listener / PersonUserExportGdprListener.class.php
CommitLineData
712b9ced
MS
1<?php
2
3namespace wcf\system\event\listener;
4
5use wcf\acp\action\UserExportGdprAction;
6
7/**
8 * Adds the ip addresses stored with the person information during user data export.
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2021 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Event\Listener
14 */
15class PersonUserExportGdprListener extends AbstractEventListener
16{
17 protected function onExport(UserExportGdprAction $action): void
18 {
19 $action->ipAddresses['com.woltlab.wcf.people'] = ['wcf' . WCF_N . '_person_information'];
20 }
21}