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