Méthode | Description | |
---|---|---|
create ( Horde_Mime_Part $mime, array $opts = [] ) : Horde_Mime_Viewer_Base | Attempts to return a concrete Horde_Mime_Viewer object based on the MIME type. | |
getIcon ( Horde_Mime_Part | string $mime, array $opts = [] ) : Horde_Themes_Image | Return the appropriate icon for a MIME object/MIME type. | |
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. | |
getViewerConfig ( string $type, string $app ) : array | Gets the configuration for a MIME type. |
Méthode | Description | |
---|---|---|
_getDriver ( string $type, string $app ) : array | Get the driver config for a MIME type. | |
_loadConfig ( string $app ) | Create the driver configuration for an application. |
public create ( Horde_Mime_Part $mime, array $opts = [] ) : Horde_Mime_Viewer_Base | ||
$mime | Horde_Mime_Part | An object with the data to be rendered. |
$opts | array | 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. |
Résultat | Horde_Mime_Viewer_Base | The newly created instance. |
public getIcon ( Horde_Mime_Part | string $mime, array $opts = [] ) : Horde_Themes_Image | ||
$mime | Horde_Mime_Part | string | The MIME object or type to query. |
$opts | array | Additional options:
'app' - (string) The Horde application to search for drivers in. DEFAULT: current app |
Résultat | Horde_Themes_Image | An object which contains the URI and filesystem location of the image. |
public getViewerCallback ( Horde_Mime_Viewer_Base $viewer, Horde_Mime_Part $mime, string $type ) : Horde_Mime_Viewer_Base | ||
$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. |
Résultat | Horde_Mime_Viewer_Base | The newly created instance. |