Remove obsolete template code
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / system / event / listener / ConversationUserActionRenameListener.class.php
1 <?php
2 namespace wcf\system\event\listener;
3
4 /**
5 * Updates the stored username during user rename.
6 *
7 * @author Alexander Ebert
8 * @copyright 2001-2019 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package WoltLabSuite\Core\System\Event\Listener
11 */
12 class ConversationUserActionRenameListener extends AbstractUserActionRenameListener {
13 /**
14 * @inheritDoc
15 */
16 protected $databaseTables = [
17 'wcf{WCF_N}_conversation',
18 'wcf{WCF_N}_conversation_message',
19 [
20 'name' => 'wcf{WCF_N}_conversation',
21 'userID' => 'lastPosterID',
22 'username' => 'lastPoster'
23 ],
24 [
25 'name' => 'wcf{WCF_N}_conversation_to_user',
26 'userID' => 'participantID'
27 ]
28 ];
29 }