Neos\Flow\I18n\TranslationProvider\XliffTranslationProvider::getModel PHP Метод

getModel() защищенный Метод

Will return existing instance if a model for given $sourceName was already requested before. Returns FALSE when $sourceName doesn't point to existing file.
protected getModel ( string $packageKey, string $sourceName, Locale $locale ) : XliffModel
$packageKey string Key of the package containing the source file
$sourceName string Relative path to existing CLDR file
$locale Neos\Flow\I18n\Locale Locale object
Результат Neos\Flow\I18n\Xliff\XliffModel New or existing instance
    protected function getModel($packageKey, $sourceName, I18n\Locale $locale)
    {
        $sourcePath = Files::concatenatePaths(['resource://' . $packageKey, $this->xliffBasePath]);
        list($sourcePath, $foundLocale) = $this->localizationService->getXliffFilenameAndPath($sourcePath, $sourceName, $locale);
        if ($sourcePath === false) {
            throw new I18n\Exception('No XLIFF file is available for ' . $packageKey . '::' . $sourceName . '::' . $locale . ' in the locale chain.', 1334759591);
        }
        if (isset($this->models[$sourcePath])) {
            return $this->models[$sourcePath];
        }
        return $this->models[$sourcePath] = new XliffModel($sourcePath, $foundLocale);
    }