Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Get Available Languages

Type: core

Class: Lang

Platform: 2v

Function: getAvailableLanguages

Visibility: public static

Parameter: getAvailableLanguages($withoutCurrent)

Description:
Get's all available languages on the site - Configured at lang/parameters/available.
Parameters:
(optional) - bool|false - $withoutCurrent - Decides if we want to include the current language.
Return:
array - All languages including the default one.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
We want to show all available languages and output it so we can make jokes behind your back.
How to call (example):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔