Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz (slusarz@horde.org)
Inheritance: extends Horde_Mime_Viewer_Base
Example #1
0
 /**
  */
 public function canRender($mode)
 {
     global $browser;
     switch ($mode) {
         case 'full':
         case 'raw':
             /* Only display raw images we know the browser supports, and we
              * know can't cause any sort of security issue. */
             if ($browser->isViewable($this->_getType())) {
                 return true;
             }
             break;
     }
     return parent::canRender($mode);
 }
Example #2
0
 /**
  * Return the full rendered version of the Horde_Mime_Part object.
  *
  * @return array  See parent::render().
  */
 protected function _renderRaw()
 {
     return parent::_render();
 }