ILIAS  release_4-3 Revision
 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= '')
 Get langauge object.
static _getLanguageOfUser ($a_usr_id)
 Get language object of user.

Static Private Attributes

static $languages = array()

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

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

Get langauge object.

public

Parameters
string$a_lang_key
Returns
ilLanguage

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

References $lng.

Referenced by ilMailNotification\__construct(), ilMail\_getAutoGeneratedMessageString(), _getLanguageOfUser(), ilECSAppEventListener\_sendNotification(), ilMailNotification\initLanguageByIso2Code(), ilCalendarMailNotification\send(), ilECSObjectSettings\sendNewContentNotification(), ilRemoteObjectBase\sendNewContentNotification(), and ilAuthContainerECS\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:

static ilLanguageFactory::_getLanguageOfUser (   $a_usr_id)
static

Get language object of user.

Parameters
int$a_usr_id
Returns
ilLanguage

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

References _getLanguage(), and ilObjUser\_lookupLanguage().

Referenced by ilMailNotification\initLanguage(), ilObjDataCollection\sendNotification(), ilObjBlog\sendNotification(), ilWikiUtil\sendNotification(), and ilExAssignment\sendNotification().

+ Here is the call graph for this function:

+ 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: