Documentation

IMP_Contacts_Image
in package

Generates a contact image to use for a given e-mail address.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

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

Table of Contents

Constants

AVATAR  = 1
FLAG  = 2

Properties

$cache_timeout  : int
Cache timeout (in seconds).
$_email  : string
The e-mail address.

Methods

__construct()  : mixed
Constructor.
getImage()  : array<string|int, mixed>
Return the data representing the contact image.

Constants

AVATAR

public mixed AVATAR = 1

Properties

$cache_timeout

Cache timeout (in seconds).

public int $cache_timeout = 3600

$_email

The e-mail address.

protected string $_email

Methods

__construct()

Constructor.

public __construct(string $email) : mixed
Parameters
$email : string

The e-mail address.

getImage()

Return the data representing the contact image.

public getImage(int $type) : array<string|int, mixed>
Parameters
$type : int

The image type.

Tags
throws
IMP_Exception
Return values
array<string|int, mixed>

Array with the following keys:

  • desc: (string) Description.
  • url: (Horde_Url|Horde_Url_Data) URL object.

        
On this page

Search results