ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilDefaultLanguageDetector.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Language/interfaces/interface.ilLanguageDetector.php';
5 
12 {
16  protected $ini;
17 
21  public function __construct(ilIniFile $ini)
22  {
23  $this->ini = $ini;
24  }
25 
30  public function getIso2LanguageCode()
31  {
32  return $this->ini->readVariable('language', 'default');
33  }
34 }
getIso2LanguageCode()
Returns the detected ISO2 language code.
Interface ilLanguageDetector.
Class ilDefaultLanguageDetector.
INIFile Parser.