0dc913aa719da2e0d80f25aee131aa789c7a9e42
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 namespace wcf\data\user\notification\event\recipient;
4
5 use wcf\data\user\UserList;
6
7 /**
8 * Extends the user list to provide special functions for handling recipients of user notifications.
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
14 */
15 class UserNotificationEventRecipientList extends UserList
16 {
17 /**
18 * @inheritDoc
19 */
20 public function __construct()
21 {
22 $this->sqlJoins = "LEFT JOIN wcf" . WCF_N . "_user user_table ON user_table.userID = event_to_user.userID";
23 $this->sqlSelects = 'user_table.*';
24
25 parent::__construct();
26 }
27
28 /**
29 * @inheritDoc
30 */
31 public function getDatabaseTableName()
32 {
33 return 'wcf' . WCF_N . '_user_notification_event_to_user';
34 }
35
36 /**
37 * @inheritDoc
38 */
39 public function getDatabaseTableAlias()
40 {
41 return 'event_to_user';
42 }
43 }