\Horde_Core_Ui_FlagImage

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.

Summary

Methods
Properties
Constants
generateFlagImageByHost()
getFlagImageObByHost()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

generateFlagImageByHost()

generateFlagImageByHost(string  $host) : string

Generate a flag image tag.

Parameters

string $host

The hostname.

Returns

string —

An HTML IMG tag (or empty if host is not found).

getFlagImageObByHost()

getFlagImageObByHost(string  $host) : array

Generate flag image object.

Parameters

string $host

The hostname.

Returns

array —

False if not found, or an array with these keys:

  - name: (string) Country name.
  - ob: (Horde_Themes_Image) Image object.