PHP Класс Neos\Neos\Service\XliffService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$localizationService Neos\Flow\I18n\Service
$packageManager Neos\Flow\Package\PackageManagerInterface
$packagesRegisteredForAutoInclusion array
$scrambleTranslatedLabels boolean
$xliffBasePath string A relative path for translations inside the package resources.
$xliffParser Neos\Flow\I18n\Xliff\XliffParser
$xliffToJsonTranslationsCache Neos\Cache\Frontend\VariableFrontend

Открытые методы

Метод Описание
getCacheVersion ( ) : integer
getCachedJson ( Locale $locale ) : Neos\Error\Messages\Result Return the json array for a given locale, sourceCatalog, xliffPath and package.
parseXliffToArray ( string $xliffPathAndFilename, string $packageKey, string $sourceName ) : array Read the xliff file and create the desired json

Защищенные методы

Метод Описание
setArrayDataValue ( array &$arrayPointer, string $key, string $value ) : void Helper method to create the needed json array from a dotted xliff id

Описание методов

getCacheVersion() публичный Метод

public getCacheVersion ( ) : integer
Результат integer The current cache version identifier

getCachedJson() публичный Метод

The json will be cached.
public getCachedJson ( Locale $locale ) : Neos\Error\Messages\Result
$locale Neos\Flow\I18n\Locale The locale
Результат Neos\Error\Messages\Result

parseXliffToArray() публичный Метод

Read the xliff file and create the desired json
public parseXliffToArray ( string $xliffPathAndFilename, string $packageKey, string $sourceName ) : array
$xliffPathAndFilename string The file to read
$packageKey string
$sourceName string
Результат array

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

Helper method to create the needed json array from a dotted xliff id
protected setArrayDataValue ( array &$arrayPointer, string $key, string $value ) : void
$arrayPointer array
$key string
$value string
Результат void

Описание свойств

$localizationService защищенное свойство

protected Service,Neos\Flow\I18n $localizationService
Результат Neos\Flow\I18n\Service

$packageManager защищенное свойство

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Результат Neos\Flow\Package\PackageManagerInterface

$packagesRegisteredForAutoInclusion защищенное свойство

protected array $packagesRegisteredForAutoInclusion
Результат array

$scrambleTranslatedLabels защищенное свойство

protected bool $scrambleTranslatedLabels
Результат boolean

$xliffBasePath защищенное свойство

A relative path for translations inside the package resources.
protected string $xliffBasePath
Результат string

$xliffParser защищенное свойство

protected XliffParser,Neos\Flow\I18n\Xliff $xliffParser
Результат Neos\Flow\I18n\Xliff\XliffParser

$xliffToJsonTranslationsCache защищенное свойство

protected VariableFrontend,Neos\Cache\Frontend $xliffToJsonTranslationsCache
Результат Neos\Cache\Frontend\VariableFrontend