ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDefaultLanguageDetector Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDefaultLanguageDetector:
+ Collaboration diagram for ilDefaultLanguageDetector:

Public Member Functions

 __construct (ilIniFile $ini)
 
 getIso2LanguageCode ()
 Returns the detected ISO2 language code. More...
 

Protected Attributes

ilIniFile $ini
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilDefaultLanguageDetector

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de /

Definition at line 29 of file class.ilDefaultLanguageDetector.php.

Constructor & Destructor Documentation

◆ __construct()

ilDefaultLanguageDetector::__construct ( ilIniFile  $ini)

Definition at line 33 of file class.ilDefaultLanguageDetector.php.

References $ini.

34  {
35  $this->ini = $ini;
36  }

Member Function Documentation

◆ getIso2LanguageCode()

ilDefaultLanguageDetector::getIso2LanguageCode ( )

Returns the detected ISO2 language code.

Implements ilLanguageDetector.

Definition at line 41 of file class.ilDefaultLanguageDetector.php.

41  : string
42  {
43  return $this->ini->readVariable("language", "default");
44  }

Field Documentation

◆ $ini

ilIniFile ilDefaultLanguageDetector::$ini
protected

Definition at line 31 of file class.ilDefaultLanguageDetector.php.

Referenced by __construct().


The documentation for this class was generated from the following file: