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])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

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

Method Details

generateFlagImageByHost() public static méthode

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

getFlagImageObByHost() public static méthode

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