Nextcloud PHP API (stable18)

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

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
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

next()

Move forward to next element

public next() : mixed
Tags
since
14.0.0
Return values
mixed

valid()

Checks if current position is valid

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

Search results