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.