1: <?php
 2: /**
 3:  * The IMP_Mime_Viewer_Rfc822 class extends the base Horde Mime Viewer
 4:  * by indicating that all subparts should be wrapped in a display DIV.
 5:  *
 6:  * Copyright 2009-2012 Horde LLC (http://www.horde.org/)
 7:  *
 8:  * See the enclosed file COPYING for license information (GPL). If you
 9:  * did not receive this file, see http://www.horde.org/licenses/gpl.
10:  *
11:  * @author   Michael Slusarz <slusarz@horde.org>
12:  * @category Horde
13:  * @license  http://www.horde.org/licenses/gpl GPL
14:  * @package  IMP
15:  */
16: class IMP_Mime_Viewer_Rfc822 extends Horde_Mime_Viewer_Rfc822
17: {
18:     /**
19:      * Return the rendered information about the Horde_Mime_Part object.
20:      *
21:      * @return array  See parent::render().
22:      */
23:     protected function _renderInfo()
24:     {
25:         $ret = parent::_renderInfo();
26:         if (!empty($ret)) {
27:             $ret[$this->_mimepart->getMimeId()]['wrap'] = 'mimePartWrap';
28:         }
29:         return $ret;
30:     }
31: 
32: }
33: