Commit | Line | Data |
---|---|---|
320f4a6d | 1 | <?php |
a9229942 | 2 | |
320f4a6d | 3 | namespace wcf\data\user\notification\event\recipient; |
a9229942 | 4 | |
320f4a6d MW |
5 | use wcf\data\user\UserList; |
6 | ||
7 | /** | |
8 | * Extends the user list to provide special functions for handling recipients of user notifications. | |
a9229942 TD |
9 | * |
10 | * @author Marcel Werk | |
11 | * @copyright 2001-2019 WoltLab GmbH | |
12 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
13 | * @package WoltLabSuite\Core\Data\User\Notification\Event\Recipient | |
320f4a6d | 14 | */ |
a9229942 TD |
15 | class UserNotificationEventRecipientList extends UserList |
16 | { | |
17 | /** | |
18 | * @inheritDoc | |
19 | */ | |
20 | public function __construct() | |
21 | { | |
d3bd0a85 MS |
22 | $this->sqlJoins = " |
23 | LEFT JOIN wcf" . WCF_N . "_user user_table | |
24 | ON user_table.userID = event_to_user.userID"; | |
a9229942 TD |
25 | $this->sqlSelects = 'user_table.*'; |
26 | ||
27 | parent::__construct(); | |
28 | } | |
29 | ||
30 | /** | |
31 | * @inheritDoc | |
32 | */ | |
33 | public function getDatabaseTableName() | |
34 | { | |
35 | return 'wcf' . WCF_N . '_user_notification_event_to_user'; | |
36 | } | |
37 | ||
38 | /** | |
39 | * @inheritDoc | |
40 | */ | |
41 | public function getDatabaseTableAlias() | |
42 | { | |
43 | return 'event_to_user'; | |
44 | } | |
320f4a6d | 45 | } |