Read the LDML file, get a single path defined value
getContent(string $locale, string $path, string $value) : string
Parameters
$locale
string
$path
string
$value
string
Returns
string
Find possible routing to other path or locale
_findRoute(string $locale, string $path, string $attribute, string $value, array $temp)
Parameters
$locale
string
$path
string
$attribute
string
$value
string
$temp
array
Exceptions
Read the right LDML file
_getFile(string $locale, string $path, string $attribute, string $value, $temp)
Parameters
$locale
string
$path
string
$attribute
string
$value
string
$temp
Read the content from locale
_readFile(string $locale, string $path, string $attribute, string $value, $temp) : array
Can be called like:
test
content
content2
Case 1: _readFile('ar','/ldml/delimiter') -> returns [] = test
Case 1: _readFile('ar','/ldml/second[@type=myone]') -> returns [] = content
Case 2: _readFile('ar','/ldml/second','type') -> returns [myone] = content; [mysecond] = content2
Case 3: _readFile('ar','/ldml/delimiter',,'right') -> returns [right] = test
Case 4: _readFile('ar','/ldml/third','type','myone') -> returns [myone] = mythird
Parameters
$locale
string
$path
string
$attribute
string
$value
string
$temp
Returns
array