IMP_Factory_MimeViewer
extends Horde_Core_Factory_MimeViewer
in package
A Horde_Injector based Horde_Mime_Viewer factory for IMP drivers.
Tags
Table of Contents
Properties
- $_contents : IMP_Contents
- Temporary storage for IMP_Contents object.
- $_instances : array<string|int, mixed>
- Instances.
Methods
- create() : Horde_Mime_Viewer_Base
- Attempts to return a concrete Horde_Mime_Viewer object based on the MIME type.
- createCallback() : Horde_Mime_Viewer_Base
- Callback used to return a MIME Viewer object from within certain Viewer drivers.
- getViewerConfig() : mixed
Properties
$_contents
Temporary storage for IMP_Contents object.
private
IMP_Contents
$_contents
$_instances
Instances.
private
array<string|int, mixed>
$_instances
= array()
Methods
create()
Attempts to return a concrete Horde_Mime_Viewer object based on the MIME type.
public
create(Horde_Mime_Part $mime[, array<string|int, mixed> $opts = array() ]) : Horde_Mime_Viewer_Base
Parameters
- $mime : Horde_Mime_Part
-
An object with the data to be rendered.
- $opts : array<string|int, mixed> = array()
-
Additional options:
- contents: (IMP_Contents) Object associated with $mime.
- type: (string) The MIME type to use for loading.
Tags
Return values
Horde_Mime_Viewer_Base —The newly created instance.
createCallback()
Callback used to return a MIME Viewer object from within certain Viewer drivers.
public
createCallback(Horde_Mime_Viewer_Base $viewer, Horde_Mime_Part $mime, string $type) : Horde_Mime_Viewer_Base
Parameters
- $viewer : Horde_Mime_Viewer_Base
-
The MIME Viewer driver requesting the new object.
- $mime : Horde_Mime_Part
-
An object with the data to be rendered.
- $type : string
-
The MIME type to use for rendering.
Tags
Return values
Horde_Mime_Viewer_Base —The newly created instance.
getViewerConfig()
public
getViewerConfig(mixed $type, mixed $app) : mixed
Parameters
- $type : mixed
- $app : mixed