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 wiki_page_created events
10 */
11class Reports_Send_EmailBuilder_WikiPageCreated extends Reports_Send_EmailBuilder_Abstract
12{
13	public function getTitle()
14	{
15		return tr('Wiki pages created:');
16	}
17
18	public function getOutput(array $change)
19	{
20		$base_url = $change['data']['base_url'];
21
22		$output = tr(
23			"%0 created the wikipage %1",
24			"<u>{$change['data']['editUser']}</u>",
25			"<a href=\"{$base_url}tiki-index.php?page={$change['data']['pageName']}\">{$change['data']['pageName']}</a>"
26		);
27
28		return $output;
29	}
30}
31