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 article_submitted events
10 */
11class Reports_Send_EmailBuilder_ArticleSubmitted extends Reports_Send_EmailBuilder_Abstract
12{
13	public function getTitle()
14	{
15		return tr('New articles submitted:');
16	}
17
18	public function getOutput(array $change)
19	{
20		$base_url = $change['data']['base_url'];
21
22		$output = '<u>' . $change['data']['user'] . '</u> ' . tra('created the article') .
23							" <a href=\"{$base_url}tiki-read_article.php?articleId=" . $change['data']['articleId'] . "\">" . $change['data']['articleTitle'] . "</a>.";
24
25		return $output;
26	}
27}
28