<?php
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: StructureRemove.php 57952 2016-03-17 19:32:46Z jyhem $

/**
 * Class for structure_remove events
 */
class Reports_Send_EmailBuilder_StructureRemove extends Reports_Send_EmailBuilder_Abstract
{
	public function getTitle()
	{
		return tr('Wiki pages removed from structure:');
	}

	public function getOutput(array $change)
	{
		$base_url = $change['data']['base_url'];

		$output = tr(
			"%0 removed %1 wiki page from a structure",
			"<u>{$change['user']}</u>",
			"<a href='{$base_url}tiki-index.php?page={$change['data']['name']}'>{$change['data']['name']}</a>"
		);

		return $output;
	}
}
