Horde_Core_Ui_FlagImage
in package
Provides methods for generating a country flag image.
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
Methods
- generateFlagImageByHost() : string
- Generate a flag image tag.
- getFlagImageObByHost() : array<string|int, mixed>
- Generate flag image object.
Methods
generateFlagImageByHost()
Generate a flag image tag.
public
static generateFlagImageByHost(string $host) : string
Parameters
- $host : string
-
The hostname.
Return values
string —An HTML IMG tag (or empty if host is not found).
getFlagImageObByHost()
Generate flag image object.
public
static getFlagImageObByHost(string $host) : array<string|int, mixed>
Parameters
- $host : string
-
The hostname.
Tags
Return values
array<string|int, mixed> —False if not found, or an array with these keys:
- name: (string) Country name. - ob: (Horde_Themes_Image) Image object.