ILanguageIterator

interface OCP\L10N\ILanguageIterator
Interface ILanguageIterator
iterator across language settings (if provided) in this order:
1. returns the forced language or:
2. if applicable, the trunk of 1 (e.g. “fu” instead of “fu_BAR”
3. returns the user language or:
4. if applicable, the trunk of 3
5. returns the system default language or:
6. 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
Implemented by:OC\L10N\LanguageIterator
Source:lib/public/L10N/ILanguageIterator.php#44
Parent:Iterator

Methods

public OCP\L10N\ILanguageIterator::current()
Return the current element
Source:lib/public/L10N/ILanguageIterator.php#51
Since:14.0.0
public OCP\L10N\ILanguageIterator::next()
Move forward to next element
Source:lib/public/L10N/ILanguageIterator.php#58
Since:14.0.0
public OCP\L10N\ILanguageIterator::key()
Return the key of the current element
Source:lib/public/L10N/ILanguageIterator.php#65
Since:14.0.0
public OCP\L10N\ILanguageIterator::valid()
Checks if current position is valid
Source:lib/public/L10N/ILanguageIterator.php#72
Since:14.0.0