Prado\I18N\core\CultureInfo::__construct PHP Method

__construct() public method

Initializes a new instance of the CultureInfo class based on the culture specified by name. E.g. new CultureInfo('en_AU'); The culture indentifier must be of the form "language_(country/region/variant)".
public __construct ( $culture = 'en' ) : return
return return new CultureInfo.
    function __construct($culture = 'en')
    {
        $this->properties = get_class_methods($this);
        if (empty($culture)) {
            $culture = 'en';
        }
        $this->dataDir = $this->dataDir();
        $this->dataFileExt = $this->fileExt();
        $this->setCulture($culture);
        $this->loadCultureData('root');
        $this->loadCultureData($culture);
    }