/**
* The driver cache array. This array is shared between all instances of
- * Horde_MIME_Viewer.
+ * Horde_Mime_Viewer.
*
* @var array
*/
+++ /dev/null
-<?php
-/**
- * The Horde_MIME_Viewer_Driver:: class provides the API for specific viewer
- * drivers to extend.
- *
- * Copyright 1999-2008 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (LGPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
- *
- * @author Anil Madhavapeddy <anil@recoil.org>
- * @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME
- */
-class Horde_MIME_Viewer_Driver
-{
- /* 'type' constants for status info. */
- const WARNING = 1;
- const INFO = 2;
-
- /**
- * Viewer configuration.
- *
- * @var array
- */
- protected $_conf = array();
-
- /**
- * The Horde_MIME_Part object to render.
- *
- * @var Horde_MIME_Part
- */
- protected $_mimepart = null;
-
- /**
- * Viewer parameters.
- *
- * @var array
- */
- protected $_params = array();
-
- /**
- * Can this driver render various views?
- *
- * @var boolean
- */
- protected $_canrender = array(
- 'full' => false,
- 'info' => false,
- 'inline' => false,
- );
-
- /**
- * Constructor.
- *
- * @param array $conf Configuration specific to the driver.
- */
- function __construct($conf = array())
- {
- $this->_conf = $conf;
- }
-
- /**
- * Sets the Horde_MIME_Part object for the class.
- *
- * @param Horde_MIME_Part &$mime_part Reference to an object with the
- * information to be rendered.
- */
- public function setMIMEPart(&$mime_part)
- {
- $this->_mimepart = $mime_part;
- }
-
- /**
- * Set parameters for use with this object.
- *
- * @param array $params An array of params to add to the internal
- * params list.
- */
- public function setParams($params = array())
- {
- $this->_params = array_merge($this->_params, $params);
- }
-
- /**
- * Return the rendered version of the Horde_MIME_Part object.
- *
- * @return array TODO
- */
- public function render()
- {
- return (is_null($this->_mimepart) || !$this->canDisplay())
- ? array('data' => '', 'status' => array(), 'type' => 'text/plain')
- : $this->_render();
- }
-
- /**
- * Return the rendered version of the Horde_MIME_Part object.
- *
- * @return string Rendered version of the Horde_MIME_Part object.
- */
- protected function _render()
- {
- }
-
- /**
- * Return the rendered inline version of the Horde_MIME_Part object.
- *
- * @return string Rendered version of the Horde_MIME_Part object.
- */
- public function renderInline()
- {
- return (is_null($this->_mimepart) || !$this->canDisplayInline())
- ? array('data' => '', 'status' => array())
- : $this->_renderInline();
- }
-
- /**
- * Return the rendered inline version of the Horde_MIME_Part object.
- *
- * @return string Rendered version of the Horde_MIME_Part object.
- */
- protected function _renderInline()
- {
- }
-
- /**
- * Return the rendered information about the Horde_MIME_Part object.
- *
- * @return string Rendered information on the Horde_MIME_Part object.
- */
- public function renderInfo()
- {
- return (is_null($this->_mimepart) || !$this->canDisplayInfo())
- ? array('data' => '', 'status' => array())
- : $this->_renderInfo();
- }
-
- /**
- * Return the rendered information about the Horde_MIME_Part object.
- *
- * @return string Rendered information on the Horde_MIME_Part object.
- */
- protected function _renderInfo()
- {
- }
-
- /**
- * Can this driver render the the data?
- *
- * @return boolean True if the driver can render data.
- */
- public function canDisplay()
- {
- return $this->_canrender['full'];
- }
-
- /**
- * Can this driver render the the data inline?
- *
- * @return boolean True if the driver can display inline.
- */
- public function canDisplayInline()
- {
- return $this->getConfigParam('inline') && $this->_canrender['inline'];
- }
-
- /**
- * Can this driver render the the data inline?
- *
- * @return boolean True if the driver can display inline.
- */
- public function canDisplayInfo()
- {
- return $this->_canrender['info'];
- }
-
- /**
- * Return a configuration parameter for the current viewer.
- *
- * @param string $param The parameter name.
- *
- * @return mixed The value of the parameter; returns null if the
- * parameter doesn't exist.
- */
- public function getConfigParam($param)
- {
- return isset($this->_conf[$param]) ? $this->_conf[$param] : null;
- }
-}
<?php
/**
- * The Horde_MIME_Viewer_audio class sends audio parts to the browser for
+ * The Horde_Mime_Viewer_audio class sends audio parts to the browser for
* handling by the browser, a plugin, or a helper application.
*
* Copyright 2004-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_audio extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_audio extends Horde_Mime_Viewer_Driver
{
/**
* Return the content-type.
require_once dirname(__FILE__) . '/source.php';
/**
- * The Horde_MIME_Viewer_css class renders CSS source as HTML with an effort
+ * The Horde_Mime_Viewer_css class renders CSS source as HTML with an effort
* to remove potentially malicious code.
*
* Copyright 2004-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_css extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_css extends Horde_Mime_Viewer_source
{
/**
* Render out the currently set contents.
<?php
/**
- * The Horde_MIME_Viewer_deb class renders out lists of files in Debian
+ * The Horde_Mime_Viewer_deb class renders out lists of files in Debian
* packages by using the dpkg tool to query the package.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_deb extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_deb extends Horde_Mime_Viewer_Driver
{
/**
* Render the data.
<?php
/**
- * The Horde_MIME_Viewer_default class simply prints out the encapsulated
+ * The Horde_Mime_Viewer_default class simply prints out the encapsulated
* content. It exists as a fallback if no other intelligent rendering
* mechanism could be used.
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_default extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_default extends Horde_Mime_Viewer_Driver
{
}
<?php
/**
- * The Horde_MIME_Viewer_enriched class renders out plain text from enriched
+ * The Horde_Mime_Viewer_enriched class renders out plain text from enriched
* content tags, ala RFC 1896.
*
* By RFC, we must do the minimal conformance measures of: A minimal
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_enriched extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_enriched extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently set contents in HTML format. The
require_once dirname(__FILE__) . '/source.php';
/**
- * The Horde_MIME_Viewer_enscript class renders out various content in HTML
+ * The Horde_Mime_Viewer_enscript class renders out various content in HTML
* format by using GNU Enscript.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_enscript extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_enscript extends Horde_Mime_Viewer_source
{
/**
* Render out the data using Enscript.
{
include_once dirname(__FILE__) . '/../Magic.php';
- $ext = Horde_MIME_Magic::MIMEToExt($type);
+ $ext = Horde_Mime_Magic::MIMEToExt($type);
switch ($ext) {
case 'cs':
<?php
/**
- * The Horde_MIME_Viewer_html class renders out HTML text with an effort to
+ * The Horde_Mime_Viewer_html class renders out HTML text with an effort to
* remove potentially malicious code.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* @author Anil Madhavapeddy <anil@recoil.org>
* @author Jon Parise <jon@horde.org>
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_html extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_html extends Horde_Mime_Viewer_Driver
{
/**
* Can this driver render various views?
$status[] = array(
'text' => $phish_warning,
- 'type' => self::WARNING
+ 'type' => 'warning'
);
}
<?php
/**
- * The Horde_MIME_Viewer_images class allows images to be displayed.
+ * The Horde_Mime_Viewer_images class allows images to be displayed.
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_images extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_images extends Horde_Mime_Viewer_Driver
{
/**
* Return the content-type.
<?php
/**
- * The Horde_MIME_Viewer_msexcel class renders out Microsoft Excel
+ * The Horde_Mime_Viewer_msexcel class renders out Microsoft Excel
* documents in HTML format by using the xlHtml package.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_msexcel extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_msexcel extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently data using xlhtml.
<?php
/**
- * The Horde_MIME_Viewer_mspowerpoint class renders out Microsoft Powerpoint
+ * The Horde_Mime_Viewer_mspowerpoint class renders out Microsoft Powerpoint
* documents in HTML format by using the xlHtml package.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_mspowerpoint extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_mspowerpoint extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current data using ppthtml.
<?php
/**
- * The Horde_MIME_Viewer_msword class renders out Microsoft Word documents
+ * The Horde_Mime_Viewer_msword class renders out Microsoft Word documents
* in HTML format by using the wvWare package.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_msword extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_msword extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current data using wvWare.
<?php
/**
- * The Horde_MIME_Viewer_ooo class renders out OpenOffice.org documents in
+ * The Horde_Mime_Viewer_ooo class renders out OpenOffice.org documents in
* HTML format.
*
* Copyright 2003-2008 The Horde Project (http://www.horde.org/)
*
* @author Marko Djukic <marko@oblo.com>
* @author Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_ooo extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_ooo extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current data.
<?php
/**
- * The Horde_MIME_Viewer_pdf class simply outputs the PDF file with the
+ * The Horde_Mime_Viewer_pdf class simply outputs the PDF file with the
* content-type 'application/pdf' enabling web browsers with a PDF viewer
* plugin to view the PDF file inside the browser.
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_pdf extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_pdf extends Horde_Mime_Viewer_Driver
{
/**
* Return the content-type.
require_once dirname(__FILE__) . '/source.php';
/**
- * The Horde_MIME_Viewer_php class renders out syntax-highlighted PHP code in
+ * The Horde_Mime_Viewer_php class renders out syntax-highlighted PHP code in
* HTML format.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_php extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_php extends Horde_Mime_Viewer_source
{
/**
* Renders out the contents.
<?php
/**
- * The Horde_MIME_Viewer_plain class renders out plain text with URLs made
+ * The Horde_Mime_Viewer_plain class renders out plain text with URLs made
* into hyperlinks (if viewing inline).
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_plain extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_Driver
{
/**
* Can this driver render various views?
<?php
/**
- * The Horde_MIME_Viewer_rar class renders out the contents of .rar archives
+ * The Horde_Mime_Viewer_rar class renders out the contents of .rar archives
* in HTML format.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @author Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_rar extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rar extends Horde_Mime_Viewer_Driver
{
/**
* Rar compression methods.
<?php
/**
- * The Horde_MIME_Viewer_report class is a wrapper used to load the
- * appropriate Horde_MIME_Viewer for multipart/report data (RFC 3462).
+ * The Horde_Mime_Viewer_report class is a wrapper used to load the
+ * appropriate Horde_Mime_Viewer for multipart/report data (RFC 3462).
*
* Copyright 2003-2008 The Horde Project (http://www.horde.org/)
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_report extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_report extends Horde_Mime_Viewer_Driver
{
/**
- * Stores the Horde_MIME_Viewer of the specified protocol.
+ * Stores the Horde_Mime_Viewer of the specified protocol.
*
- * @var Horde_MIME_Viewer
+ * @var Horde_Mime_Viewer
*/
protected $_viewer;
*/
public function render($params = array())
{
- /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+ /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
if (!($this->_resolveViewer())) {
return;
}
- /* Render using the loaded Horde_MIME_Viewer object. */
+ /* Render using the loaded Horde_Mime_Viewer object. */
return $this->_viewer->render($params);
}
*/
public function getType()
{
- /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+ /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
if (!($this->_resolveViewer())) {
return 'application/octet-stream';
} else {
}
/**
- * Load a Horde_MIME_Viewer according to the report-type parameter stored
+ * Load a Horde_Mime_Viewer according to the report-type parameter stored
* in the MIME_Part to render. If unsuccessful, try to load a generic
- * multipart Horde_MIME_Viewer.
+ * multipart Horde_Mime_Viewer.
*
* @return boolean True on success, false on failure.
*/
if (empty($this->_viewer)) {
if (($type = $this->mime_part->getContentTypeParameter('report-type'))) {
- $viewer = &Horde_MIME_Viewer::factory($this->mime_part, 'message/' . String::lower($type));
+ $viewer = &Horde_Mime_Viewer::factory($this->mime_part, 'message/' . String::lower($type));
$type = $this->mime_part->getPrimaryType();
} else {
/* If report-type is missing, the message is an improper
if (empty($viewer) ||
(String::lower(get_class($viewer)) == 'mime_viewer_default')) {
- if (!($viewer = &Horde_MIME_Viewer::factory($this->mime_part, $type . '/*'))) {
+ if (!($viewer = &Horde_Mime_Viewer::factory($this->mime_part, $type . '/*'))) {
return false;
}
}
<?php
/**
- * The Horde_MIME_Viewer_rfc822 class renders out messages from the
+ * The Horde_Mime_Viewer_rfc822 class renders out messages from the
* message/rfc822 content type.
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_rfc822 extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rfc822 extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently set contents.
/* Get the list of headers now. */
require_once 'Horde/MIME/Headers.php';
- $headers = Horde_MIME_Headers::parseHeaders($text);
+ $headers = Horde_Mime_Headers::parseHeaders($text);
$header_array = array(
'date' => _("Date"),
<?php
/**
- * The Horde_MIME_Viewer_richtext class renders out HTML text from
+ * The Horde_Mime_Viewer_richtext class renders out HTML text from
* text/richtext content tags, (RFC 1896 [7.1.3]).
*
* A minimal richtext implementation is one that simply converts "<lt>" to
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_richtext extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_richtext extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently set contents in HTML format.
<?php
/**
- * The Horde_MIME_Viewer_rpm class renders out lists of files in RPM
+ * The Horde_Mime_Viewer_rpm class renders out lists of files in RPM
* packages by using the rpm tool to query the package.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anil Madhavapeddy <anil@recoil.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_rpm extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rpm extends Horde_Mime_Viewer_Driver
{
/**
* Render out the RPM contents.
<?php
/**
- * The Horde_MIME_Viewer_rtf class renders out Rich Text Format documents in
+ * The Horde_Mime_Viewer_rtf class renders out Rich Text Format documents in
* HTML format by using the UnRTF package
* (http://www.gnu.org/software/unrtf/unrtf.html).
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Duck <duck@obala.net>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_rtf extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_rtf extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current data using UnRTF.
<?php
/**
- * The Horde_MIME_Viewer_security class is a wrapper used to load the
- * appropriate Horde_MIME_Viewer for secure multipart messages (defined by RFC
+ * The Horde_Mime_Viewer_security class is a wrapper used to load the
+ * appropriate Horde_Mime_Viewer for secure multipart messages (defined by RFC
* 1847). This class handles multipart/signed and multipart/encrypted data.
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_security extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_security extends Horde_Mime_Viewer_Driver
{
/**
- * Stores the Horde_MIME_Viewer of the specified security protocol.
+ * Stores the Horde_Mime_Viewer of the specified security protocol.
*
- * @var Horde_MIME_Viewer
+ * @var Horde_Mime_Viewer
*/
protected $_viewer;
/**
* The $mime_part class variable has the information to render
- * out, encapsulated in a Horde_MIME_Part object.
+ * out, encapsulated in a Horde_Mime_Part object.
*
* @param $params mixed The parameters (if any) to pass to the underlying
- * Horde_MIME_Viewer.
+ * Horde_Mime_Viewer.
*
* @return string Rendering of the content.
*/
public function render($params = array())
{
- /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+ /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
if (!($this->_resolveViewer())) {
return;
}
- /* Render using the loaded Horde_MIME_Viewer object. */
+ /* Render using the loaded Horde_Mime_Viewer object. */
return $this->_viewer->render($params);
}
*/
public function getType()
{
- /* Get the appropriate Horde_MIME_Viewer for the protocol specified. */
+ /* Get the appropriate Horde_Mime_Viewer for the protocol specified. */
if (!($this->_resolveViewer())) {
return 'application/octet-stream';
} else {
}
/**
- * Load a Horde_MIME_Viewer according to the protocol parameter stored
- * in the Horde_MIME_Part to render. If unsuccessful, try to load a generic
- * multipart Horde_MIME_Viewer.
+ * Load a Horde_Mime_Viewer according to the protocol parameter stored
+ * in the Horde_Mime_Part to render. If unsuccessful, try to load a generic
+ * multipart Horde_Mime_Viewer.
*
* @return boolean True on success, false on failure.
*/
if (empty($protocol)) {
return false;
}
- $viewer = &Horde_MIME_Viewer::factory($this->mime_part, $protocol);
+ $viewer = &Horde_Mime_Viewer::factory($this->mime_part, $protocol);
if (empty($viewer) ||
(String::lower(get_class($viewer)) == 'mime_viewer_default')) {
- $viewer = &Horde_MIME_Viewer::factory($this->mime_part, $this->mime_part->getPrimaryType() . '/*');
+ $viewer = &Horde_Mime_Viewer::factory($this->mime_part, $this->mime_part->getPrimaryType() . '/*');
if (empty($viewer)) {
return false;
}
<?php
/**
- * The Horde_MIME_Viewer_simple class renders out plain text without any
+ * The Horde_Mime_Viewer_simple class renders out plain text without any
* modifications.
*
* Copyright 2004-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_simple extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_simple extends Horde_Mime_Viewer_Driver
{
/**
* Return the MIME type of the rendered content.
<?php
/**
- * The Horde_MIME_Viewer_smil renders SMIL documents to very basic HTML.
+ * The Horde_Mime_Viewer_smil renders SMIL documents to very basic HTML.
*
* Copyright 2006-2008 The Horde Project (http://www.horde.org/)
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_smil extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_smil extends Horde_Mime_Viewer_Driver
{
/**
* Handle for the XML parser object.
<?php
/**
- * The Horde_MIME_Viewer_source class is a class for any viewer that wants
+ * The Horde_Mime_Viewer_source class is a class for any viewer that wants
* to provide line numbers to extend.
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_source extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_source extends Horde_Mime_Viewer_Driver
{
/**
* Add line numbers to a block of code.
require_once dirname(__FILE__) . '/source.php';
/**
- * The Horde_MIME_Viewer_srchighlite class renders out various content in HTML
+ * The Horde_Mime_Viewer_srchighlite class renders out various content in HTML
* format by using Source-highlight.
*
* Source-highlight: http://www.gnu.org/software/src-highlite/
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Mike Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_srchighlite extends Horde_MIME_Viewer_source
+class Horde_Mime_Viewer_srchighlite extends Horde_Mime_Viewer_source
{
/**
* Render out the currently set contents using Source-highlight
require_once 'Horde/Text.php';
/**
- * The Horde_MIME_Viewer_tgz class renders out plain or gzipped tarballs in
+ * The Horde_Mime_Viewer_tgz class renders out plain or gzipped tarballs in
* HTML.
*
* See the enclosed file COPYING for license information (LGPL). If you
*
* @author Anil Madhavapeddy <anil@recoil.org>
* @author Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_tgz extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_tgz extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently set tar file contents.
<?php
/**
- * The Horde_MIME_Viewer_tnef class allows MS-TNEF attachments to be
+ * The Horde_Mime_Viewer_tnef class allows MS-TNEF attachments to be
* displayed.
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
*
* @author Jan Schneider <jan@horde.org>
* @author Michael Slusarz <slusarz@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_tnef extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_tnef extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current tnef data.
<?php
/**
- * The Horde_MIME_Viewer_vcard class renders out vCards in HTML format.
+ * The Horde_Mime_Viewer_vcard class renders out vCards in HTML format.
*
* Copyright 2002-2008 The Horde Project (http://www.horde.org/)
*
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Jan Schneider <jan@horde.org>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_vcard extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_vcard extends Horde_Mime_Viewer_Driver
{
/**
* Render out the vcard contents.
<?php
/**
- * The Horde_MIME_Viewer_webcpp class renders out various content in HTML
+ * The Horde_Mime_Viewer_webcpp class renders out various content in HTML
* format by using Web C Plus Plus.
*
* Web C Plus plus: http://webcpp.sourceforge.net/
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Mike Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_webcpp extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_webcpp extends Horde_Mime_Viewer_Driver
{
/**
* Render out the currently set contents using Web C Plus Plus.
<?php
/**
- * The Horde_MIME_Viewer_wordperfect class renders out WordPerfect documents
+ * The Horde_Mime_Viewer_wordperfect class renders out WordPerfect documents
* in HTML format by using the libwpd package.
*
* libpwd website: http://libwpd.sourceforge.net/
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Matt Selsky <selsky@columbia.edu>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_wordperfect extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_wordperfect extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current data using wpd2html.
<?php
/**
- * The Horde_MIME_Viewer_zip class renders out the contents of ZIP files in
+ * The Horde_Mime_Viewer_zip class renders out the contents of ZIP files in
* HTML format.
*
* Copyright 2000-2008 The Horde Project (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Michael Cochrane <mike@graftonhall.co.nz>
- * @package Horde_MIME_Viewer
+ * @package Horde_Mime_Viewer
*/
-class Horde_MIME_Viewer_zip extends Horde_MIME_Viewer_Driver
+class Horde_Mime_Viewer_zip extends Horde_Mime_Viewer_Driver
{
/**
* Render out the current zip contents.
* Any unknown file extensions will automatically be mapped to
* 'x-extension/<ext>' where <ext> is the unknown file extension.
*
- * @package Horde_MIME
- *
- * $Horde: framework/MIME/MIME/mime.mapping.php,v 1.18 2008/11/06 04:33:47 chuck Exp $
+ * @package Horde_Mime
*
* Generated: 11/05/08 23:30:23 by chuck on technest.org
*/
'wk3' => 'application/vnd.lotus-1-2-3',
'abw' => 'application/x-abiword',
'pict1' => 'image/x-pict'
-);
\ No newline at end of file
+);