1: <?php
2: /**
3: * The Horde_Mime_Viewer_Simple class renders out plain text without any
4: * modifications.
5: *
6: * Copyright 2004-2012 Horde LLC (http://www.horde.org/)
7: *
8: * See the enclosed file COPYING for license information (LGPL). If you
9: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10: *
11: * @author Michael Slusarz <slusarz@horde.org>
12: * @category Horde
13: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
14: * @package Mime_Viewer
15: */
16: class Horde_Mime_Viewer_Simple extends Horde_Mime_Viewer_Base
17: {
18: /**
19: * This driver's display capabilities.
20: *
21: * @var array
22: */
23: protected $_capability = array(
24: 'full' => true,
25: 'info' => false,
26: 'inline' => false,
27: 'raw' => false
28: );
29:
30: /**
31: * Return the full rendered version of the Horde_Mime_Part object.
32: *
33: * @return array See parent::render().
34: */
35: protected function _render()
36: {
37: return $this->_renderReturn(
38: null,
39: 'text/plain; charset=' . $this->_mimepart->getCharset()
40: );
41: }
42:
43: }
44: