ILanguageIterator extends Iterator
Interface ILanguageIterator
iterator across language settings (if provided) in this order:
- returns the forced language or:
- if applicable, the trunk of 1 (e.g. "fu" instead of "fu_BAR"
- returns the user language or:
- if applicable, the trunk of 3
- returns the system default language or:
- if applicable, the trunk of 5 7+∞. returns 'en'
if settings are not present or truncating is not applicable, the iterator skips to the next valid item itself
Tags
Table of Contents
- current() : string
- Return the current element
- key() : int
- Return the key of the current element
- next() : mixed
- Move forward to next element
- valid() : bool
- Checks if current position is valid
Methods
current()
Return the current element
public
current() : string
Tags
Return values
string —key()
Return the key of the current element
public
key() : int
Tags
Return values
int —next()
Move forward to next element
public
next() : mixed
Tags
Return values
mixed —valid()
Checks if current position is valid
public
valid() : bool