ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilMailLanguageHelper.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
27  public function getLanguageByIsoCode(string $isoCode): ilLanguage
28  {
29  return ilLanguageFactory::_getLanguage($isoCode);
30  }
31 
32  public function getCurrentLanguage(): ilLanguage
33  {
34  global $DIC;
35 
36  return $DIC->language();
37  }
38 }
Class ilMailLanguageHelper.
global $DIC
Definition: shib_login.php:22
static _getLanguage(string $a_lang_key='')
Get language object.