ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
11
class
ilDefaultLanguageDetector
implements
ilLanguageDetector
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
}
ilDefaultLanguageDetector\getIso2LanguageCode
getIso2LanguageCode()
Returns the detected ISO2 language code.
Definition:
class.ilDefaultLanguageDetector.php:30
ilDefaultLanguageDetector\__construct
__construct(ilIniFile $ini)
Definition:
class.ilDefaultLanguageDetector.php:21
ilLanguageDetector
Interface ilLanguageDetector.
Definition:
interface.ilLanguageDetector.php:9
ilDefaultLanguageDetector
Class ilDefaultLanguageDetector.
Definition:
class.ilDefaultLanguageDetector.php:11
ilDefaultLanguageDetector\$ini
$ini
Definition:
class.ilDefaultLanguageDetector.php:16
php
ilIniFile
INIFile Parser.
Definition:
class.ilIniFile.php:37
Services
Language
classes
class.ilDefaultLanguageDetector.php
Generated on Thu Jan 16 2025 19:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)