Documentation

IMP_Mime_Viewer_Images extends Horde_Mime_Viewer_Images
in package

Renderer for image data.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2002-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Properties

$_capability  : array<string|int, mixed>
This driver's display capabilities.

Methods

canRender()  : mixed
_getHordeImageOb()  : mixed
Return a Horde_Image object.
_imgDataUrl()  : Horde_Url
Output the URL to view image data.
_outputImgTag()  : string
Output an image tag.
_render()  : array<string|int, mixed>
Return the full rendered version of the Horde_Mime_Part object.
_renderImgData()  : mixed
_renderInfo()  : array<string|int, mixed>
Return the rendered information about the Horde_Mime_Part object.
_renderInline()  : array<string|int, mixed>
Return the rendered inline version of the Horde_Mime_Part object.
_renderRaw()  : array<string|int, mixed>
Return the full rendered version of the Horde_Mime_Part object.
_viewConvert()  : string
Convert image.

Properties

$_capability

This driver's display capabilities.

protected array<string|int, mixed> $_capability = array('full' => \false, 'info' => \true, 'inline' => \true, 'raw' => \false)

Methods

canRender()

public canRender(mixed $mode) : mixed
Parameters
$mode : mixed

_getHordeImageOb()

Return a Horde_Image object.

protected _getHordeImageOb(bool $load) : mixed
Parameters
$load : bool

Whether to load the image data.

Return values
mixed

The Horde_Image object, or false on error.

_imgDataUrl()

Output the URL to view image data.

protected _imgDataUrl([string $view = 'data' ]) : Horde_Url
Parameters
$view : string = 'data'

View type: 'data' or 'view_thumbnail'.

Return values
Horde_Url

URL.

_outputImgTag()

Output an image tag.

protected _outputImgTag(string $type, string $alt) : string
Parameters
$type : string

The view type.

$alt : string

The ALT text.

Return values
string

An image tag.

_render()

Return the full rendered version of the Horde_Mime_Part object.

protected _render() : array<string|int, mixed>

URL parameters used by this function:

  • imp_img_base64: (boolean) Return data in base64.
  • imp_img_view: (string) One of the following:
    • data: Output the image directly.
    • view_convert: Convert the image to browser-viewable format and display.
    • view_thumbnail: Create thumbnail and display.
Return values
array<string|int, mixed>

See parent::render().

_renderImgData()

protected _renderImgData([mixed $base64 = false ]) : mixed
Parameters
$base64 : mixed = false

_renderInfo()

Return the rendered information about the Horde_Mime_Part object.

protected _renderInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

See parent::render().

_renderInline()

Return the rendered inline version of the Horde_Mime_Part object.

protected _renderInline() : array<string|int, mixed>
Return values
array<string|int, mixed>

See parent::render().

_renderRaw()

Return the full rendered version of the Horde_Mime_Part object.

protected _renderRaw() : array<string|int, mixed>
Return values
array<string|int, mixed>

See parent::render().

_viewConvert()

Convert image.

protected _viewConvert(bool $thumb) : string
Parameters
$thumb : bool

View image in thumbnail size?

Return values
string

The image data.


        
On this page

Search results