i18n::__construct PHP Method

__construct() public method

Constructor The constructor sets all important settings. All params are optional, you can set the options via extra functions too.
public __construct ( $filePath = NULL, $cachePath = NULL, $fallbackLang = NULL, $prefix = NULL )
    public function __construct($filePath = NULL, $cachePath = NULL, $fallbackLang = NULL, $prefix = NULL)
    {
        // Apply settings
        if ($filePath != NULL) {
            $this->filePath = $filePath;
        }
        if ($cachePath != NULL) {
            $this->cachePath = $cachePath;
        }
        if ($fallbackLang != NULL) {
            $this->fallbackLang = $fallbackLang;
        }
        if ($prefix != NULL) {
            $this->prefix = $prefix;
        }
    }