696d7d1864d027a90572014ebdad1f6c69bddc02
[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-2016 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package com.woltlab.wcf
12 * @subpackage data.user.notification.event.recipient
13 * @category Community Framework
14 */
15 class UserNotificationEventRecipientList extends UserList {
16 /**
17 * @see \wcf\data\DatabaseObjectList\DatabaseObjectList::__construct()
18 */
19 public function __construct() {
20 $this->sqlJoins = "LEFT JOIN wcf".WCF_N."_user user_table ON (user_table.userID = event_to_user.userID)";
21 $this->sqlSelects = 'user_table.*';
22
23 parent::__construct();
24 }
25
26 /**
27 * @see \wcf\data\DatabaseObjectList::getDatabaseTableName()
28 */
29 public function getDatabaseTableName() {
30 return 'wcf'.WCF_N.'_user_notification_event_to_user';
31 }
32
33 /**
34 * @see \wcf\data\DatabaseObjectList::getDatabaseTableAlias()
35 */
36 public function getDatabaseTableAlias() {
37 return 'event_to_user';
38 }
39 }