\Horde_Mime_Viewer

The Horde_Mime_Viewer:: class provides an abstracted interface to render MIME data into various formats. It depends on both a set of Horde_Mime_Viewer_* drivers which handle the actual rendering, and a configuration file to map MIME types to drivers.

Copyright 1999-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
factory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

factory()

factory(string  $driver, \Horde_Mime_Part  $part, array  $params = array()) : \Horde_Mime_Viewer_Base

Attempts to return a concrete Horde_Mime_Viewer_Base instance based on $driver.

Parameters

string $driver

Either a driver name, or the full class name to use (class must extend Horde_Mime_Viewer_Base).

\Horde_Mime_Part $part

The MIME part object to display.

array $params

A hash containing any additional configuration or parameters a subclass might need.

Throws

\Horde_Mime_Viewer_Exception

Returns

\Horde_Mime_Viewer_Base

The newly created concrete instance.