Class Sylar_Language

Description

Class to manage the languages and translations

Located in /sylar/classes/common/locale/Language.php (line 41)

Sylar_Locale
   |
   --Sylar_Language
Method Summary
 void __construct (Sylar_LocaleConfiguration $oConfig)
 void __destruct ()
 void getConfig ()
 void getDictionary ()
 void loadApplicationDictionary (mixed $sDictName, [mixed $bFlagAppend = true])
 void loadSylarDictionary (string $sDictName, [boolean $bFlagAppend = true])
 string provideText (string $sLabel, [mixed $aReplaceList = null])
 void setApplicationLocaleRootFs (string $sApplicationLocaleRootFs)
 void setConfig (Sylar_LocaleConfiguration $oConfig)
 void setDictionary (mixed $aDictionary)
Methods
Constructor __construct (line 55)
void __construct (Sylar_LocaleConfiguration $oConfig)

Redefinition of:
Sylar_Locale::__construct()
Destructor __destruct (line 63)
void __destruct ()

Redefinition of:
Sylar_Locale::__destruct()
getApplicationLocaleRootFs (line 101)
  • access: public
string getApplicationLocaleRootFs ()

Redefinition of:
Sylar_Locale::getApplicationLocaleRootFs()
getConfig (line 86)
  • access: public
void getConfig ()

Redefinition of:
Sylar_Locale::getConfig()
getDictionary (line 78)
  • access: public
void getDictionary ()
loadApplicationDictionary (line 134)
  • access: public
void loadApplicationDictionary (mixed $sDictName, [mixed $bFlagAppend = true])
loadSylarDictionary (line 120)

It load a specified Sylar dictionary file It load dictionaries from Sylar standard directory

  • access: public
void loadSylarDictionary (string $sDictName, [boolean $bFlagAppend = true])
  • string $sDictName: Dictionary file name without the extension (must be a .php file)
  • boolean $bFlagAppend
provideText (line 161)

It returns the translation string associated to label in the dictionary array A generic error message is showed if the label doesn't exists in the dictionary

  • return: with translations
  • access: public
  • see: loadDictionary
string provideText (string $sLabel, [mixed $aReplaceList = null])
  • string $sLabel
setApplicationLocaleRootFs (line 94)
  • access: public
void setApplicationLocaleRootFs (string $sApplicationLocaleRootFs)
  • string $sApplicationLocaleRootFs

Redefinition of:
Sylar_Locale::setApplicationLocaleRootFs()
setConfig (line 82)
  • access: public
void setConfig (Sylar_LocaleConfiguration $oConfig)

Redefinition of:
Sylar_Locale::setConfig()
setDictionary (line 74)
  • access: public
void setDictionary (mixed $aDictionary)

Inherited Methods

Inherited From Sylar_Locale

 Sylar_Locale::__construct()
 Sylar_Locale::getApplicationLocaleRootFs()
 Sylar_Locale::getConfig()
 Sylar_Locale::setApplicationLocaleRootFs()
 Sylar_Locale::setConfig()
 Sylar_Locale::__destruct()

Documentation generated on Thu, 24 Apr 2008 16:14:16 +0200 by phpDocumentor 1.3.0RC3