1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<?php
/**
* The IMP_MIME_Viewer_multipart class handles multipart messages not
* rendered by any specific MIME_Viewer.
*
* $Horde: imp/lib/MIME/Viewer/multipart.php,v 1.13.10.9 2008/01/02 11:31:38 jan Exp $
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
* @package Horde_MIME_Viewer
*/
class IMP_MIME_Viewer_multipart extends MIME_Viewer {
/**
* Render out the currently set contents.
*
* @param array $params An array with a reference to a MIME_Contents
* object.
*
* @return string The rendered text in HTML.
*/
function render($params)
{
$contents = &$params[0];
$parts = $this->mime_part->getParts();
foreach ($parts as $part) {
$contents->buildMessagePart($part);
}
}
/**
* Return the content-type.
*
* @return string The content-type of the message.
*/
function getType()
{
return 'text/html; charset=' . NLS::getCharset();
}
}
|