ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLanguageFactory Class Reference
+ Collaboration diagram for ilLanguageFactory:

Static Public Member Functions

static _getLanguage ($a_lang_key= '')
 public

Static Private Attributes

static $languages = array()

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 32 of file class.ilLanguageFactory.php.

Member Function Documentation

static ilLanguageFactory::_getLanguage (   $a_lang_key = '')
static

public

Parameters

Definition at line 44 of file class.ilLanguageFactory.php.

References $lng.

Referenced by ilMail\_getAutoGeneratedMessageString(), ilECSAppEventListener\_sendNotification(), ilECSAppEventListener\handleEvent(), ilECSContentWriter\sendNewContentNotification(), and ilAuthECS\sendNotification().

{
global $lng;
if(!$a_lang_key)
{
if(is_object($lng))
{
$a_lang_key = $lng->getDefaultLanguage();
}
else
{
$a_lang_key = 'en';
}
}
if(isset(self::$languages[$a_lang_key]))
{
return self::$languages[$a_lang_key];
}
return self::$languages[$a_lang_key] = new ilLanguage($a_lang_key);
}

+ Here is the caller graph for this function:

Field Documentation

ilLanguageFactory::$languages = array()
staticprivate

Definition at line 34 of file class.ilLanguageFactory.php.


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