XOOPS  2.6.0
Xoops\Core\Service\Contract\CountryflagInterface Interface Reference
Inheritance diagram for Xoops\Core\Service\Contract\CountryflagInterface:
Inheritance graph

Public Member Functions

 getImgTag (Response $response, $countryCode, $attributes=array())
 
 getImgUrl (Response $response, $countryCode)
 

Public Attributes

const MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE
 

Detailed Description

Definition at line 26 of file CountryflagInterface.php.

Member Function Documentation

Xoops\Core\Service\Contract\CountryflagInterface::getImgTag ( Response  $response,
  $countryCode,
  $attributes = array() 
)

getImgTag - get a full HTML img tag to display a flag based on county code

Parameters
Response$responseobject
string$countryCodeISO 3166-1 alpha-2 code to select flag
array$attributesarray of attribute name => value pairs for img tag
Returns
void - response->value set to URL string
Xoops\Core\Service\Contract\CountryflagInterface::getImgUrl ( Response  $response,
  $countryCode 
)

getImgUrl - get URL to flag based on county code

Parameters
Response$responseobject
string$countryCodeISO 3166-1 alpha-2 code to select flag
Returns
void - response->value set to URL string

Member Data Documentation

const Xoops\Core\Service\Contract\CountryflagInterface::MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE

Definition at line 28 of file CountryflagInterface.php.


The documentation for this interface was generated from the following file: