51 return 'Built in CountryFlag provider';
65 $size = strtolower(substr($size, 0, 1));
77 $flagDir = $this->flagSource . $sizeDir .
'/';
78 $flagFile = $flagDir . $countryCode .
'.png';
82 if (!is_readable(
$file)) {
83 $flagFile = $flagDir .
'_unknown.png';
116 $attributes = array(),
121 $imgTag =
new Img(array(
'src' =>
$url,
'alt' => $countryCode));
122 $imgTag->setAttributes($attributes);
123 $response->
setValue($imgTag->render());
getImgTag(Response $response, $countryCode, $attributes=array(), $size= 'large')
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
getFlagUrl($countryCode, $size)
getImgUrl(Response $response, $countryCode, $size= 'large')
if($xoops->isUser()&&$isAdmin) $response