Source of file CountryField.php
Size: 0,939 Bytes - Last Modified: 2021-12-23T10:19:50+00:00
/var/www/docs.ssmods.com/process/src/code/core/CountryField.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <?php /** * CountryField is an object that hold a country locale details. It is callable from template files. * * @author Mohamed Alsharaf <mohamed.alsharaf@gmail.com> */ class CountryField extends ViewableData { /** * Country code. * * @var string */ protected $countryCode; /** * Set a country code. * * @param string $value * * @return CountryField */ public function setValue($value) { $this->countryCode = $value; return $this; } /** * Get country code. * * @return string */ public function Code() { return $this->countryCode; } /** * Get the country full name based on the code supplied to the object. * * @return string */ public function Name() { return (string) Zend_Locale::getTranslation($this->Code(), 'country', i18n::get_locale()); } } |