|
| getOption (string $langPath, string $optionType) |
| getOptions (string $langPath='') |
| load () |
| save () |
| offsetExists ($code) |
| offsetGet ($code) |
| offsetSet ($code, $phrase) |
| offsetUnset ($code) |
| current () |
| next () |
| key () |
| valid () |
| rewind () |
| count ($allowDirectFileAccess=false) |
| getLangId () |
| setLangId (string $languageId) |
| getSourceEncoding () |
| setSourceEncoding (string $encoding) |
| getOperatingEncoding () |
| setOperatingEncoding (string $encoding) |
| lint (string $content='', array $validTokens=[\T_OPEN_TAG, \T_CLOSE_TAG, \T_WHITESPACE, \T_CONSTANT_ENCAPSED_STRING, \T_VARIABLE, \T_COMMENT, \T_DOC_COMMENT], array $validChars=['[', ']', ';', '=']) |
| loadTokens () |
См. определение в файле settings.php строка 9
◆ count()
count |
( |
| $allowDirectFileAccess = false | ) |
|
Returns amount phrases in the language file.
- Аргументы
-
bool | $allowDirectFileAccess | Allow include file to count phrases. |
- Возвращает
- int
См. определение в файле settings.php строка 351
◆ current()
Return the current phrase element.
- Возвращает
- array|null
См. определение в файле settings.php строка 291
◆ getOption()
getOption |
( |
string | $langPath, |
|
|
string | $optionType ) |
Returns option for file/folder.
- Аргументы
-
string | $langPath | Path to language file. |
string | $optionType | Option type. |
- Возвращает
- array
См. определение в файле settings.php строка 69
◆ getOptions()
getOptions |
( |
string | $langPath = '' | ) |
|
Returns option for file/folder.
- Аргументы
-
string | $langPath | Path to language file. |
- Возвращает
- array
См. определение в файле settings.php строка 87
◆ instantiateByPath()
instantiateByPath |
( |
string | $fullPath | ) |
|
|
static |
Constructs instance by lang path.
- Аргументы
-
string | $fullPath | Full path to language file. |
- Возвращает
- Translate\Settings|null
- Исключения
-
ArgumentException
Переопределяет метод предка File.
См. определение в файле settings.php строка 38
◆ key()
Return the key of the current phrase element.
- Возвращает
- string|null
См. определение в файле settings.php строка 313
◆ load()
Loads option file for operate.
- Возвращает
- bool
Переопределяет метод предка File.
См. определение в файле settings.php строка 150
◆ next()
Move forward to next phrase element.
- Возвращает
- void
См. определение в файле settings.php строка 303
◆ offsetExists()
- Аргументы
-
- Возвращает
- boolean
См. определение в файле settings.php строка 235
◆ offsetGet()
- Аргументы
-
- Возвращает
- string|null
См. определение в файле settings.php строка 246
◆ offsetSet()
offsetSet |
( |
| $code, |
|
|
| $phrase ) |
Offset to set
- Аргументы
-
string | $code | Phrase code. |
string | $phrase | Phrase. |
- Возвращает
- void
См. определение в файле settings.php строка 264
◆ offsetUnset()
Unset phrase by code.
- Аргументы
-
string | $code | Language code. |
- Возвращает
- void
См. определение в файле settings.php строка 276
◆ rewind()
Rewind the Iterator to the first element.
- Возвращает
- void
См. определение в файле settings.php строка 334
◆ save()
Save changes or create new file.
- Возвращает
- boolean
- Исключения
-
IO\IoException
См. определение в файле settings.php строка 180
◆ valid()
Checks if current position is valid.
- Возвращает
- boolean
См. определение в файле settings.php строка 323
◆ $dataPosition
◆ $optionCodes
◆ $options
◆ $optionsCount
◆ FILE_NAME
const FILE_NAME = '.settings.php' |
◆ OPTION_LANGUAGES
const OPTION_LANGUAGES = 'languages' |
Объявления и описания членов класса находятся в файле: