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