1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8/**
9 * Class for forum_post_topic events
10 */
11class Reports_Send_EmailBuilder_ForumPostTopic extends Reports_Send_EmailBuilder_Abstract
12{
13	public function getTitle()
14	{
15		return tr('New posts in forums:');
16	}
17
18	public function getOutput(array $change)
19	{
20		$base_url = $change['data']['base_url'];
21
22		$output = tr(
23			'%0 created the topic %1 at forum %2',
24			"<u>" . $change['data']['user'] . "</u>",
25			"<a href=\"{$base_url}tiki-view_forum_thread.php?comments_parentId={$change['data']['topicId']}\">{$change['data']['threadName']}</a>",
26			"<a href=\"{$base_url}tiki-view_forum.php?forumId={$change['data']['forumId']}\">{$change['data']['forumName']}</a>."
27		);
28
29		return $output;
30	}
31}
32