public function getModel($filename)
    {
        $filename = Files::concatenatePaths([$this->cldrBasePath, $filename . '.xml']);

        if (isset($this->models[$filename])) {
            return $this->models[$filename];
        }

        if (!is_file($filename)) {
            return false;
        }

        return $this->models[$filename] = new CldrModel([$filename]);
    }
public function getModel($filename)
    {
        $filename = Files::concatenatePaths([$this->cldrBasePath, $filename . '.xml']);

        if (isset($this->models[$filename])) {
            return $this->models[$filename];
        }

        if (!is_file($filename)) {
            return false;
        }

        return $this->models[$filename] = new CldrModel([$filename]);
    }
public function getModel ( $ filename ) { $ filename = Files :: concatenatePaths ( [ $ this -> cldrBasePath , $ filename . '.xml' ] ) ; if ( isset ( $ this -> models [ $ filename ] ) ) { return $ this -> models [ $ filename ] ; } if ( ! is_file ( $ filename ) ) { return false ; } return $ this -> models [ $ filename ] = new CldrModel ( [ $ filename ] ) ; }
Returns an instance of CldrModel which represents CLDR file found under
specified path.

Will return existing instance if a model for given $filename was already
requested before. Returns false when $filename doesn't point to existing
file.

@param string $filename Relative (from CLDR root) path to existing CLDR file
@return CldrModel|boolean A CldrModel instance or false on failure
Returns an instance of CldrModel which represents CLDR file found under specified path .