Nextcloud PHP API (master)

ILanguageIterator extends Iterator

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

Tags
since
14.0.0

Table of Contents

Methods

current()  : string
Return the current element
key()  : int
Return the key of the current element
next()  : void
Move forward to next element
valid()  : bool
Checks if current position is valid

Methods

current()

Return the current element

public current() : string
Tags
since
14.0.0
Return values
string

key()

Return the key of the current element

public key() : int
Tags
since
14.0.0
Return values
int

valid()

Checks if current position is valid

public valid() : bool
Tags
since
14.0.0
Return values
bool

        
On this page

Search results