$_injector
$_injector : \Horde_Injector
The injector.
A Horde_Injector based Horde_Mime_Viewer factory.
This class is used for factories that are intended to have their create() methods manually called by code.
Copyright 2011-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.
create(\Horde_Mime_Part $mime, array $opts = array()) : \Horde_Mime_Viewer_Base
Attempts to return a concrete Horde_Mime_Viewer object based on the MIME type.
\Horde_Mime_Part | $mime | An object with the data to be rendered. |
array | $opts | Additional options: app: (string) The Horde application to search for drivers in. DEFAULT: current app type: (string) The MIME type to use for loading. DEFAULT: Uses MIME type in $mime. |
The newly created instance.
getViewerCallback(\Horde_Mime_Viewer_Base $viewer, \Horde_Mime_Part $mime, string $type) : \Horde_Mime_Viewer_Base
Callback used to return a MIME Viewer object from within certain Viewer drivers.
\Horde_Mime_Viewer_Base | $viewer | The MIME Viewer driver requesting the new object. |
\Horde_Mime_Part | $mime | An object with the data to be rendered. |
string | $type | The MIME type to use for rendering. |
The newly created instance.
getIcon(\Horde_Mime_Part|string $mime, array $opts = array()) : \Horde_Themes_Image
Return the appropriate icon for a MIME object/MIME type.
\Horde_Mime_Part|string | $mime | The MIME object or type to query. |
array | $opts | Additional options: 'app' - (string) The Horde application to search for drivers in. DEFAULT: current app |
An object which contains the URI and filesystem location of the image.