class RegionDataGenerator extends AbstractDataGenerator

The rule for compiling the region bundle.

Constants

UNKNOWN_REGION_ID

OUTLYING_OCEANIA_REGION_ID

EUROPEAN_UNION_ID

NETHERLANDS_ANTILLES_ID

BOUVET_ISLAND_ID

HEARD_MCDONALD_ISLANDS_ID

CLIPPERTON_ISLAND_ID

EUROZONE_ID

UNITED_NATIONS_ID

Methods

__construct(GenrbCompiler $compiler, string $dirName)

No description

generateData(GeneratorConfig $config)

No description

string[]
scanLocales(LocaleScanner $scanner, string $sourceDir)

No description

compileTemporaryBundles(GenrbCompiler $compiler, string $sourceDir, string $tempDir)

No description

preGenerate()

No description

array|null
generateDataForLocale(BundleReaderInterface $reader, string $tempDir, string $displayLocale)

No description

array|null
generateDataForRoot(BundleReaderInterface $reader, string $tempDir)

No description

array|null
generateDataForMeta(BundleReaderInterface $reader, string $tempDir)

No description

array
generateRegionNames(ArrayAccessibleResourceBundle $localeBundle)

No description

Details

__construct(GenrbCompiler $compiler, string $dirName)

Parameters

GenrbCompiler $compiler
string $dirName

generateData(GeneratorConfig $config)

Parameters

GeneratorConfig $config

protected string[] scanLocales(LocaleScanner $scanner, string $sourceDir)

Parameters

LocaleScanner $scanner
string $sourceDir

Return Value

string[]

protected compileTemporaryBundles(GenrbCompiler $compiler, string $sourceDir, string $tempDir)

Parameters

GenrbCompiler $compiler
string $sourceDir
string $tempDir

protected preGenerate()

protected array|null generateDataForLocale(BundleReaderInterface $reader, string $tempDir, string $displayLocale)

Parameters

BundleReaderInterface $reader
string $tempDir
string $displayLocale

Return Value

array|null

protected array|null generateDataForRoot(BundleReaderInterface $reader, string $tempDir)

Parameters

BundleReaderInterface $reader
string $tempDir

Return Value

array|null

protected array|null generateDataForMeta(BundleReaderInterface $reader, string $tempDir)

Parameters

BundleReaderInterface $reader
string $tempDir

Return Value

array|null

protected array generateRegionNames(ArrayAccessibleResourceBundle $localeBundle)

Parameters

ArrayAccessibleResourceBundle $localeBundle

Return Value

array