IMP_Contacts_Image
in package
Generates a contact image to use for a given e-mail address.
Tags
Table of Contents
Constants
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
FLAG
public
mixed
FLAG
= 2
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
Return values
array<string|int, mixed> —Array with the following keys:
- desc: (string) Description.
- url: (Horde_Url|Horde_Url_Data) URL object.