Class jBundle

Description

a bundle contains all readed properties in a given language, and for all charsets

Located in /core/jLocale.class.php (line 24)


	
			
Variable Summary
mixed $fic
mixed $locale
mixed $_strings
Method Summary
jBundle __construct (jSelector $file, string $locale)
string get (string $key, [string $charset = null])
void _loadLocales (string $locale, string $charset)
void _loadResources ( $fichier,  $charset)
Variables
mixed $fic (line 25)
  • access: public
mixed $locale (line 26)
  • access: public
mixed $_loadedCharset = array () (line 28)
  • access: protected
mixed $_strings = array() (line 29)
  • access: protected
Methods
Constructor __construct (line 36)

constructor

  • access: public
jBundle __construct (jSelector $file, string $locale)
  • jSelector $file: selector of a properties file
  • string $locale: the code lang
get (line 47)

get the translation

  • return: the localized string
  • access: public
string get (string $key, [string $charset = null])
  • string $key: the locale key
  • string $charset
_loadLocales (line 68)

Loads the resources for a given locale/charset.

  • access: protected
void _loadLocales (string $locale, string $charset)
  • string $locale: the locale
  • string $charset: the charset
_loadResources (line 110)

loads a given resource from its path.

  • access: protected
void _loadResources ( $fichier,  $charset)
  • $fichier
  • $charset

Documentation generated on Wed, 07 Sep 2011 13:47:34 +0200 by phpDocumentor 1.4.3