PHP Class Horde_Core_Ui_FlagImage, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz ([email protected])
Mostra file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
generateFlagImageByHost ( string $host ) : string Generate a flag image tag.
getFlagImageObByHost ( string $host ) : array Generate flag image object.

Method Details

generateFlagImageByHost() public static method

Generate a flag image tag.
public static generateFlagImageByHost ( string $host ) : string
$host string The hostname.
return string An HTML IMG tag (or empty if host is not found).

getFlagImageObByHost() public static method

Generate flag image object.
Since: 2.10.0
public static getFlagImageObByHost ( string $host ) : array
$host string The hostname.
return array False if not found, or an array with these keys:
  - name: (string) Country name.
  - ob: (Horde_Themes_Image) Image object.